aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorAustin Adams <git@austinjadams.com>2015-12-21 20:26:15 -0500
committerAustin Adams <git@austinjadams.com>2015-12-21 20:28:38 -0500
commited63cbd6ee392a01d10f0ca3f36ac9442622f0a9 (patch)
treebfdfce02bf4735de32521bef267f071522a33758 /youtube_dl/extractor
parentc7224074d61adf0dda362332a27f8ae20c4502cd (diff)
[comcarcoff] adjust for json updates
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/comcarcoff.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/comcarcoff.py b/youtube_dl/extractor/comcarcoff.py
index 81f3d7697..4391b7ce4 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'<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]