]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/comcarcoff.py
Imported Debian patch 2015.11.27.1-1.1
[youtubedl] / youtube_dl / extractor / comcarcoff.py
index 9c25b2223184ad1258b399b154aa821954581350..81f3d7697b843d3d9abb23fbc047b8230a69b351 100644 (file)
@@ -36,7 +36,7 @@ class ComCarCoffIE(InfoExtractor):
             webpage, 'full data json'))
 
         video_id = full_data['activeVideo']['video']
             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'],
         }, {
         thumbnails = [{
             'url': video_data['images']['thumb'],
         }, {