From: Austin Adams Date: Tue, 22 Dec 2015 01:26:15 +0000 (-0500) Subject: [comcarcoff] adjust for json updates X-Git-Tag: 2015.12.23~7^2 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=ed63cbd6ee392a01d10f0ca3f36ac9442622f0a9;p=youtube-dl.git [comcarcoff] adjust for json updates --- diff --git a/youtube_dl/extractor/comcarcoff.py b/youtube_dl/extractor/comcarcoff.py index 81f3d7697b..4391b7ce4c 100644 --- a/youtube_dl/extractor/comcarcoff.py +++ b/youtube_dl/extractor/comcarcoff.py @@ -32,8 +32,8 @@ class ComCarCoffIE(InfoExtractor): webpage = self._download_webpage(url, display_id) full_data = json.loads(self._search_regex( - r'', - webpage, 'full data json')) + r'\nwindow.app = (?P.+?);\n', + webpage, 'full data json'))['videoData'] video_id = full_data['activeVideo']['video'] video_data = full_data.get('videos', {}).get(video_id) or full_data['singleshots'][video_id]