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')
|
series = attributes.get('show_title')
|
||||||
|
|
||||||
thumbnails = []
|
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)
|
thumbnail = try_get(data, lambda x: x['included']['images'][0]['attributes'][size], compat_str)
|
||||||
if thumbnail:
|
if thumbnail:
|
||||||
thumbnails.append({'url': thumbnail})
|
thumbnails.append({'url': thumbnail, 'id': i})
|
||||||
|
|
||||||
video_response = self._call_api(
|
video_response = self._call_api(
|
||||||
display_id,
|
display_id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user