mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 19:33:59 +01:00
[comcarcoff] adjust for json updates
This commit is contained in:
parent
c7224074d6
commit
ed63cbd6ee
|
@ -32,8 +32,8 @@ def _real_extract(self, url):
|
|||
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]
|
||||
|
|
Loading…
Reference in New Issue
Block a user