diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-12-31 22:04:29 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-12-31 22:05:32 +0700 |
commit | e186a9ec0394400a6996f98d197d0d14937a60c9 (patch) | |
tree | 5434bdc299674bb1fb65500b4c3f3572463a8ccd /youtube_dl/extractor/videa.py | |
parent | 69677f3ee216b99ada7ac97ddd4d506245541b27 (diff) |
[videa] Add support for videa embeds
Diffstat (limited to 'youtube_dl/extractor/videa.py')
-rw-r--r-- | youtube_dl/extractor/videa.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/youtube_dl/extractor/videa.py b/youtube_dl/extractor/videa.py index 039add86b..311df58f4 100644 --- a/youtube_dl/extractor/videa.py +++ b/youtube_dl/extractor/videa.py @@ -1,6 +1,8 @@ # coding: utf-8 from __future__ import unicode_literals +import re + from .common import InfoExtractor from ..utils import ( int_or_none, @@ -43,6 +45,12 @@ class VideaIE(InfoExtractor): 'only_matching': True, }] + @staticmethod + def _extract_urls(webpage): + return [url for _, url in re.findall( + r'<iframe[^>]+src=(["\'])(?P<url>(?:https?:)?//videa\.hu/player\?.*?\bv=.+?)\1', + webpage)] + def _real_extract(self, url): video_id = self._match_id(url) |