Set id on thumbnail, so using --write-thumbnail will (coincidentally) download the largest available image now.
This commit is contained in:
parent
5509e05d34
commit
4ced2e0437
@ -108,10 +108,10 @@ class RoosterTeethIE(InfoExtractor):
|
||||
series = attributes.get('show_title')
|
||||
|
||||
thumbnails = []
|
||||
for size in ['thumb', 'small', 'medium', 'large']:
|
||||
for i, size in enumerate(['thumb', 'small', 'medium', 'large']):
|
||||
thumbnail = try_get(data, lambda x: x['included']['images'][0]['attributes'][size], compat_str)
|
||||
if thumbnail:
|
||||
thumbnails.append({'url': thumbnail})
|
||||
thumbnails.append({'url': thumbnail, 'id': i})
|
||||
|
||||
video_response = self._call_api(
|
||||
display_id,
|
||||
|
Loading…
x
Reference in New Issue
Block a user