From 3dd445217ba8072973dddf6ee11bfa02d8c054be Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Sat, 11 Jan 2020 17:42:12 +0100 Subject: [PATCH] [roosterteeth] Allow bonus_feature_image as thumbnails Certain bonus episodes do not have their thumbnail taged with "episode_image", but as "bonus_feature_image". --- youtube_dl/extractor/roosterteeth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/roosterteeth.py b/youtube_dl/extractor/roosterteeth.py index aa473363d..e434e1fab 100644 --- a/youtube_dl/extractor/roosterteeth.py +++ b/youtube_dl/extractor/roosterteeth.py @@ -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)