From: Sergey M․ Date: Sun, 26 Jul 2015 03:51:54 +0000 (+0600) Subject: [comcarcoff] Add support for singleshots (Closes #6366) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=5bdec59de15b9bde73a3077a6b9ce517c10b9906;p=youtube-dl [comcarcoff] Add support for singleshots (Closes #6366) --- diff --git a/youtube_dl/extractor/comcarcoff.py b/youtube_dl/extractor/comcarcoff.py index 9c25b2223..81f3d7697 100644 --- a/youtube_dl/extractor/comcarcoff.py +++ b/youtube_dl/extractor/comcarcoff.py @@ -36,7 +36,7 @@ class ComCarCoffIE(InfoExtractor): webpage, 'full data json')) video_id = full_data['activeVideo']['video'] - video_data = full_data['videos'][video_id] + video_data = full_data.get('videos', {}).get(video_id) or full_data['singleshots'][video_id] thumbnails = [{ 'url': video_data['images']['thumb'], }, {