mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-20 05:47:24 +01:00
[PMVHaven] Dont strip, use _search_regex
This commit is contained in:
parent
2472bc97cd
commit
45cf901047
@ -25,7 +25,7 @@ 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)
|
||||||
|
|
||||||
data = self._html_search_regex(r'<script.*id="__NUXT_DATA__".*>(.+?)</script>', webpage, 'json data')
|
data = self._search_regex(r'<script.*id="__NUXT_DATA__".*>(.+?)</script>', webpage, 'json data search')
|
||||||
data = json.loads(data)
|
data = json.loads(data)
|
||||||
|
|
||||||
# Data contains "pointers", so we gotta follow them
|
# Data contains "pointers", so we gotta follow them
|
||||||
|
Loading…
Reference in New Issue
Block a user