mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-24 03:41:00 +01:00
[cnet] Correct JSON capturing
This commit is contained in:
parent
88ce273da4
commit
e51880fd32
|
@ -33,7 +33,7 @@ def _real_extract(self, url):
|
||||||
|
|
||||||
webpage = self._download_webpage(url, display_id)
|
webpage = self._download_webpage(url, display_id)
|
||||||
data_json = self._html_search_regex(
|
data_json = self._html_search_regex(
|
||||||
r"<div class=\"cnetVideoPlayer\" data-cnet-video-options='([^']+)'",
|
r"<div class=\"cnetVideoPlayer\"\s+.*?data-cnet-video-options='([^']+)'",
|
||||||
webpage, 'data json')
|
webpage, 'data json')
|
||||||
data = json.loads(data_json)
|
data = json.loads(data_json)
|
||||||
vdata = data['video']
|
vdata = data['video']
|
||||||
|
|
Loading…
Reference in New Issue
Block a user