mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-22 06:00:00 +00:00
parent
db1c3a9d3f
commit
9d9a8676dc
1 changed files with 1 additions and 1 deletions
|
@ -271,7 +271,7 @@ def _real_extract(self, url):
|
||||||
|
|
||||||
catalogue = None
|
catalogue = None
|
||||||
video_id = self._search_regex(
|
video_id = self._search_regex(
|
||||||
r'data-main-video=(["\'])(?P<id>(?:(?!\1).)+)\1',
|
r'(?:data-main-video\s*=|videoId\s*:)\s*(["\'])(?P<id>(?:(?!\1).)+)\1',
|
||||||
webpage, 'video id', default=None, group='id')
|
webpage, 'video id', default=None, group='id')
|
||||||
|
|
||||||
if not video_id:
|
if not video_id:
|
||||||
|
|
Loading…
Reference in a new issue