[wimp] Fix Youtube embeds extraction

This commit is contained in:
Sergey M․ 2018-06-11 02:40:17 +07:00
parent e8c6afc168
commit d253df2f65
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -36,7 +36,8 @@ def _real_extract(self, url):
webpage = self._download_webpage(url, video_id) webpage = self._download_webpage(url, video_id)
youtube_id = self._search_regex( 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) webpage, 'video URL', default=None)
if youtube_id: if youtube_id:
return { return {