aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-09-30 22:12:52 +0600
committerSergey M․ <dstftw@gmail.com>2015-09-30 22:12:52 +0600
commit8466336104164b37b3f32c32278e2426590db42f (patch)
tree1cabf63bd0a670be8b2627d1ce4abe480a75cc50 /youtube_dl
parentf88f1b40ce7f70a3a510259154364a25d7dceff6 (diff)
[vk] Detect vimeo embeds (Closes #7021)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/vk.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/youtube_dl/extractor/vk.py b/youtube_dl/extractor/vk.py
index c30c5a8e5..765e9e6fd 100644
--- a/youtube_dl/extractor/vk.py
+++ b/youtube_dl/extractor/vk.py
@@ -17,6 +17,7 @@ from ..utils import (
unescapeHTML,
unified_strdate,
)
+from .vimeo import VimeoIE
class VKIE(InfoExtractor):
@@ -249,6 +250,10 @@ class VKIE(InfoExtractor):
if youtube_url:
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(
r'\ssrc="((?:https?:)?//rutube\.ru\\?/video\\?/embed(?:.*?))\\?"', info_page)
if m_rutube is not None: