diff options
author | Sergey M․ <[email protected]> | 2015-07-26 09:51:54 +0600 |
---|---|---|
committer | Sergey M․ <[email protected]> | 2015-07-26 09:51:54 +0600 |
commit | 5bdec59de15b9bde73a3077a6b9ce517c10b9906 (patch) | |
tree | 29f23182a59463a3b8a5a651eeb2b4bea0ece75b | |
parent | 7a896817226405a772baa3808d63062d4ad11c94 (diff) | |
download | youtube-dl-5bdec59de15b9bde73a3077a6b9ce517c10b9906.tar.gz youtube-dl-5bdec59de15b9bde73a3077a6b9ce517c10b9906.zip |
[comcarcoff] Add support for singleshots (Closes #6366)
-rw-r--r-- | youtube_dl/extractor/comcarcoff.py | 2 |
1 files changed, 1 insertions, 1 deletions
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'], }, { |