X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Fcomcarcoff.py;h=81f3d7697b843d3d9abb23fbc047b8230a69b351;hb=11bed5827dace09b5483b159476ce9f8c29d6078;hp=a2211ee4495eabdc3cc8bada7b4197c84544a0ff;hpb=19bf2b4e88a1d71f5d617a6e9728a9c2687a8df8;p=youtube-dl diff --git a/youtube_dl/extractor/comcarcoff.py b/youtube_dl/extractor/comcarcoff.py index a2211ee44..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'], }, { @@ -53,4 +53,5 @@ class ComCarCoffIE(InfoExtractor): 'timestamp': parse_iso8601(video_data.get('pubDate')), 'thumbnails': thumbnails, 'formats': formats, + 'webpage_url': 'http://comediansincarsgettingcoffee.com/%s' % (video_data.get('urlSlug', video_data.get('slug'))), }