diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-06-12 18:37:09 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-06-12 18:37:09 +0600 |
commit | 9872d3110c0d3027dac856e005299f3682ef23ed (patch) | |
tree | 0f4e4000ca77154dd753cf1e60796cd2ab7644c6 /youtube_dl | |
parent | b859971873915df55668a59a18ccfd259c20800e (diff) |
[extractor/generic] Add support for tvigle embeds
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/generic.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 357d58cea..40d869c53 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -1321,6 +1321,12 @@ class GenericIE(InfoExtractor): if sportbox_urls: return _playlist_from_matches(sportbox_urls, ie='SportBoxEmbed') + # Look for embedded Tvigle player + mobj = re.search( + r'<iframe[^>]+?src=(["\'])(?P<url>(?:https?:)?//cloud\.tvigle\.ru/video/.+?)\1', webpage) + if mobj is not None: + return self.url_result(mobj.group('url'), 'Tvigle') + # Look for embedded TED player mobj = re.search( r'<iframe[^>]+?src=(["\'])(?P<url>https?://embed(?:-ssl)?\.ted\.com/.+?)\1', webpage) |