mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-10 19:41:20 +00:00
[roosterteeth] Fixed syntax "if in" for Python 2.6.9
This commit is contained in:
parent
4438917048
commit
03ccfc4983
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,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') in {'episode_image', 'bonus_feature_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)
|
||||||
|
|
Loading…
Reference in a new issue