mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-10 09:07:58 +01:00
[vk] Detect vimeo embeds (Closes #7021)
This commit is contained in:
parent
f88f1b40ce
commit
8466336104
1 changed files with 5 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
||||||
unescapeHTML,
|
unescapeHTML,
|
||||||
unified_strdate,
|
unified_strdate,
|
||||||
)
|
)
|
||||||
|
from .vimeo import VimeoIE
|
||||||
|
|
||||||
|
|
||||||
class VKIE(InfoExtractor):
|
class VKIE(InfoExtractor):
|
||||||
|
@ -249,6 +250,10 @@ def _real_extract(self, url):
|
||||||
if youtube_url:
|
if youtube_url:
|
||||||
return self.url_result(youtube_url, 'Youtube')
|
return self.url_result(youtube_url, 'Youtube')
|
||||||
|
|
||||||
|
vimeo_url = VimeoIE._extract_vimeo_url(url, info_page)
|
||||||
|
if vimeo_url is not None:
|
||||||
|
return self.url_result(vimeo_url)
|
||||||
|
|
||||||
m_rutube = re.search(
|
m_rutube = re.search(
|
||||||
r'\ssrc="((?:https?:)?//rutube\.ru\\?/video\\?/embed(?:.*?))\\?"', info_page)
|
r'\ssrc="((?:https?:)?//rutube\.ru\\?/video\\?/embed(?:.*?))\\?"', info_page)
|
||||||
if m_rutube is not None:
|
if m_rutube is not None:
|
||||||
|
|
Loading…
Reference in a new issue