aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2014-06-29 20:18:23 +0700
committerSergey M․ <dstftw@gmail.com>2014-06-29 20:18:23 +0700
commit0364fa8b65a6c6742454ec5f3a858e06dc1527f7 (patch)
treeb37ac3c7cefb1cbe52ec4bb75c55ef5b346da881
parent849086a1ae153e0dbc5047cbcf8324938d7b7036 (diff)
[generic] Add support for ivi.ru embedded player
-rw-r--r--youtube_dl/extractor/generic.py5
1 files changed, 5 insertions, 0 deletions
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'<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)