projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45dad7b
)
[vk] Add support for pladform embeds (Closes #7780)
author
Sergey M․
<dstftw@gmail.com>
Mon, 7 Dec 2015 16:03:52 +0000
(22:03 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Mon, 7 Dec 2015 16:03:52 +0000
(22:03 +0600)
youtube_dl/extractor/vk.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/vk.py
b/youtube_dl/extractor/vk.py
index d99a42a9f1dd982b50cc2b324714d6a75cb15d9b..9632c85fa6478e787329a6ec26427a9b26445518 100644
(file)
--- 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: