From: Sergey M․ Date: Fri, 12 Jun 2015 12:37:09 +0000 (+0600) Subject: [extractor/generic] Add support for tvigle embeds X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=9872d3110c0d3027dac856e005299f3682ef23ed;p=youtube-dl [extractor/generic] Add support for tvigle embeds --- 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']+?src=(["\'])(?P(?: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']+?src=(["\'])(?Phttps?://embed(?:-ssl)?\.ted\.com/.+?)\1', webpage)