aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-12-07 22:03:52 +0600
committerSergey M․ <dstftw@gmail.com>2015-12-07 22:03:52 +0600
commitc4737bea1716386e8b3455edfbd783fd415c192d (patch)
tree8704fce2c53107b0a1af62b3a93aa0f20ac06666 /youtube_dl/extractor
parent45dad7ba1b28321299f973fc6a42bd7de64481d7 (diff)
[vk] Add support for pladform embeds (Closes #7780)
Diffstat (limited to 'youtube_dl/extractor')
-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 d99a42a9f..9632c85fa 100644
--- a/youtube_dl/extractor/vk.py
+++ b/youtube_dl/extractor/vk.py
@@ -18,6 +18,7 @@ from ..utils import (
unified_strdate,
)
from .vimeo import VimeoIE
+from .pladform import PladformIE
class VKIE(InfoExtractor):
@@ -254,6 +255,10 @@ class VKIE(InfoExtractor):
if vimeo_url is not None:
return self.url_result(vimeo_url)
+ pladform_url = PladformIE._extract_url(info_page)
+ if pladform_url:
+ return self.url_result(pladform_url)
+
m_rutube = re.search(
r'\ssrc="((?:https?:)?//rutube\.ru\\?/video\\?/embed(?:.*?))\\?"', info_page)
if m_rutube is not None: