[roosterteeth] Fixed syntax "if in" for Python 2.6.9

pull/23708/head
Felix Stupp 4 years ago
parent 4438917048
commit 03ccfc4983
No known key found for this signature in database
GPG Key ID: 93E1BD26F6B02FB7

@ -122,7 +122,7 @@ class RoosterTeethIE(InfoExtractor):
thumbnails = []
for image in episode.get('included', {}).get('images', []):
if image.get('type') in {'episode_image', 'bonus_feature_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)

Loading…
Cancel
Save