[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 = []
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 {}
for k in ('thumb', 'small', 'medium', 'large'):
img_url = img_attributes.get(k)