mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-17 23:53:58 -05:00
[wimp] Fix Youtube embeds extraction
This commit is contained in:
parent
e8c6afc168
commit
d253df2f65
1 changed files with 2 additions and 1 deletions
|
@ -36,7 +36,8 @@ def _real_extract(self, url):
|
|||
webpage = self._download_webpage(url, video_id)
|
||||
|
||||
youtube_id = self._search_regex(
|
||||
r"videoId\s*:\s*[\"']([0-9A-Za-z_-]{11})[\"']",
|
||||
(r"videoId\s*:\s*[\"']([0-9A-Za-z_-]{11})[\"']",
|
||||
r'data-id=["\']([0-9A-Za-z_-]{11})'),
|
||||
webpage, 'video URL', default=None)
|
||||
if youtube_id:
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue