]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[comcarcoff] adjust for json updates
authorAustin Adams <git@austinjadams.com>
Tue, 22 Dec 2015 01:26:15 +0000 (20:26 -0500)
committerAustin Adams <git@austinjadams.com>
Tue, 22 Dec 2015 01:28:38 +0000 (20:28 -0500)
youtube_dl/extractor/comcarcoff.py

index 81f3d7697b843d3d9abb23fbc047b8230a69b351..4391b7ce4ce50973b05ed1dcb255fc819e0e113d 100644 (file)
@@ -32,8 +32,8 @@ class ComCarCoffIE(InfoExtractor):
         webpage = self._download_webpage(url, display_id)
 
         full_data = json.loads(self._search_regex(
-            r'<script type="application/json" id="videoData">(?P<json>.+?)</script>',
-            webpage, 'full data json'))
+            r'\nwindow.app = (?P<json>.+?);\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]