mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-17 01:25:11 +00:00
[condenast] fix video info regex
This commit is contained in:
parent
882fc9052e
commit
2949a6cda9
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ def _extract_video(self, webpage, url_type):
|
||||||
info_url = base_info_url + data
|
info_url = base_info_url + data
|
||||||
info_page = self._download_webpage(info_url, video_id,
|
info_page = self._download_webpage(info_url, video_id,
|
||||||
'Downloading video info')
|
'Downloading video info')
|
||||||
video_info = self._search_regex(r'var\s*video\s*=\s*({.+?});', info_page, 'video info')
|
video_info = self._search_regex(r'var\s+video\s*=\s*({.+?});', info_page, 'video info')
|
||||||
video_info = self._parse_json(video_info, video_id)
|
video_info = self._parse_json(video_info, video_id)
|
||||||
|
|
||||||
formats = [{
|
formats = [{
|
||||||
|
|
Loading…
Reference in a new issue