Browse Source

[vk] Add support for pladform embeds (Closes #7780)

totalwebcasting
Sergey M․ 9 years ago
parent
commit
c4737bea17
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      youtube_dl/extractor/vk.py

+ 5
- 0
youtube_dl/extractor/vk.py View File

@ -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:


Loading…
Cancel
Save