From: Sergey M․ Date: Sun, 29 Jun 2014 13:18:23 +0000 (+0700) Subject: [generic] Add support for ivi.ru embedded player X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=0364fa8b65a6c6742454ec5f3a858e06dc1527f7;p=youtube-dl [generic] Add support for ivi.ru embedded player --- diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 9dd03aba4..869efb215 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -620,6 +620,11 @@ class GenericIE(InfoExtractor): if mobj is not None: return self.url_result(mobj.group('url'), 'VK') + # Look for embedded ivi player + mobj = re.search(r']+?src=(["\'])(?Phttps?://(?:www\.)?ivi\.ru/video/player.+?)\1', webpage) + if mobj is not None: + return self.url_result(mobj.group('url'), 'Ivi') + # Look for embedded Huffington Post player mobj = re.search( r']+?src=(["\'])(?Phttps?://embed\.live\.huffingtonpost\.com/.+?)\1', webpage)