aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/extractor/comcarcoff.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-07-26 09:51:54 +0600
committerSergey M․ <dstftw@gmail.com>2015-07-26 09:51:54 +0600
commit5bdec59de15b9bde73a3077a6b9ce517c10b9906 (patch)
tree29f23182a59463a3b8a5a651eeb2b4bea0ece75b /youtube_dl/extractor/comcarcoff.py
parent7a896817226405a772baa3808d63062d4ad11c94 (diff)
downloadyoutube-dl-5bdec59de15b9bde73a3077a6b9ce517c10b9906.zip
youtube-dl-5bdec59de15b9bde73a3077a6b9ce517c10b9906.tar.gz
youtube-dl-5bdec59de15b9bde73a3077a6b9ce517c10b9906.tar.bz2
[comcarcoff] Add support for singleshots (Closes #6366)
Diffstat (limited to 'youtube_dl/extractor/comcarcoff.py')
-rw-r--r--youtube_dl/extractor/comcarcoff.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/comcarcoff.py b/youtube_dl/extractor/comcarcoff.py
index 9c25b22..81f3d76 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'],
}, {