projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[comcarcoff] adjust for json updates
[youtube-dl]
/
youtube_dl
/
extractor
/
comcarcoff.py
diff --git
a/youtube_dl/extractor/comcarcoff.py
b/youtube_dl/extractor/comcarcoff.py
index 81f3d7697b843d3d9abb23fbc047b8230a69b351..4391b7ce4ce50973b05ed1dcb255fc819e0e113d 100644
(file)
--- 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(
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]
video_id = full_data['activeVideo']['video']
video_data = full_data.get('videos', {}).get(video_id) or full_data['singleshots'][video_id]