commit 5bdec59de15b9bde73a3077a6b9ce517c10b9906 parent 7a896817226405a772baa3808d63062d4ad11c94 Author: Sergey M․ <dstftw@gmail.com> Date: Sun, 26 Jul 2015 09:51:54 +0600 [comcarcoff] Add support for singleshots (Closes #6366) Diffstat:
M | youtube_dl/extractor/comcarcoff.py | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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'], }, {