mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-01-07 17:16:08 +00:00
Merge pull request #7942 from ausbin/comcarcoff-json-fix
[comcarcoff] adjust for json updates
This commit is contained in:
commit
11208ebbf1
|
@ -32,8 +32,8 @@ class ComCarCoffIE(InfoExtractor):
|
||||||
webpage = self._download_webpage(url, display_id)
|
webpage = self._download_webpage(url, display_id)
|
||||||
|
|
||||||
full_data = json.loads(self._search_regex(
|
full_data = json.loads(self._search_regex(
|
||||||
r'<script type="application/json" id="videoData">(?P<json>.+?)</script>',
|
r'\nwindow.app = (?P<json>.+?);\n',
|
||||||
webpage, 'full data json'))
|
webpage, 'full data json'))['videoData']
|
||||||
|
|
||||||
video_id = full_data['activeVideo']['video']
|
video_id = full_data['activeVideo']['video']
|
||||||
video_data = full_data.get('videos', {}).get(video_id) or full_data['singleshots'][video_id]
|
video_data = full_data.get('videos', {}).get(video_id) or full_data['singleshots'][video_id]
|
||||||
|
|
Loading…
Reference in a new issue