1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-25 19:52:11 +00:00

[roosterteeth] Allow bonus_feature_image as thumbnails

Certain bonus episodes do not have their thumbnail taged with
"episode_image", but as "bonus_feature_image".
This commit is contained in:
Felix Stupp 2020-01-11 17:42:12 +01:00
parent 3c6ba354c2
commit 3dd445217b
No known key found for this signature in database
GPG key ID: 93E1BD26F6B02FB7

View file

@ -109,7 +109,7 @@ class RoosterTeethIE(InfoExtractor):
thumbnails = [] thumbnails = []
for image in episode.get('included', {}).get('images', []): for image in episode.get('included', {}).get('images', []):
if image.get('type') == 'episode_image': if image.get('type') in {'episode_image', 'bonus_feature_image'}:
img_attributes = image.get('attributes') or {} img_attributes = image.get('attributes') or {}
for k in ('thumb', 'small', 'medium', 'large'): for k in ('thumb', 'small', 'medium', 'large'):
img_url = img_attributes.get(k) img_url = img_attributes.get(k)