[generic] Add support for ivi.ru embedded player
authorSergey M․ <dstftw@gmail.com>
Sun, 29 Jun 2014 13:18:23 +0000 (20:18 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 29 Jun 2014 13:18:23 +0000 (20:18 +0700)
youtube_dl/extractor/generic.py

index 9dd03aba48ed612c429f7b37ceca22dbd789fd9d..869efb215b003dded66633bfb72a22b86ee87a10 100644 (file)
@@ -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'<embed[^>]+?src=(["\'])(?P<url>https?://(?: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'<iframe[^>]+?src=(["\'])(?P<url>https?://embed\.live\.huffingtonpost\.com/.+?)\1', webpage)