mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-24 21:56:53 +01:00
[escapist] Fix imsVideo regex (#5090)
This commit is contained in:
parent
e2dc351d25
commit
290a5a8d85
@ -65,7 +65,10 @@ def _real_extract(self, url):
|
|||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
webpage = self._download_webpage(url, video_id)
|
webpage = self._download_webpage(url, video_id)
|
||||||
|
|
||||||
imsVideo = json.loads(self._search_regex(r'imsVideo\.play\(([^\)]+)\);', webpage, 'imsVideo'))
|
imsVideo = self._parse_json(
|
||||||
|
self._search_regex(
|
||||||
|
r'imsVideo\.play\(({.+?})\);', webpage, 'imsVideo'),
|
||||||
|
video_id)
|
||||||
video_id = imsVideo['videoID']
|
video_id = imsVideo['videoID']
|
||||||
key = imsVideo['hash']
|
key = imsVideo['hash']
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user