mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-10 00:58:17 +02:00
[ntvde] Improve regex
This commit is contained in:
parent
986986064e
commit
6b559c2fbc
@ -35,7 +35,7 @@ def _real_extract(self, url):
|
|||||||
webpage = self._download_webpage(url, video_id)
|
webpage = self._download_webpage(url, video_id)
|
||||||
|
|
||||||
info = self._parse_json(self._search_regex(
|
info = self._parse_json(self._search_regex(
|
||||||
r'(?s)ntv.pageInfo.article =\s(\{.*?\});', webpage, 'info'),
|
r'(?s)ntv\.pageInfo\.article\s*=\s*(\{.*?\});', webpage, 'info'),
|
||||||
video_id, transform_source=js_to_json)
|
video_id, transform_source=js_to_json)
|
||||||
timestamp = int_or_none(info.get('publishedDateAsUnixTimeStamp'))
|
timestamp = int_or_none(info.get('publishedDateAsUnixTimeStamp'))
|
||||||
vdata = self._parse_json(self._search_regex(
|
vdata = self._parse_json(self._search_regex(
|
||||||
|
Loading…
Reference in New Issue
Block a user