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

index 528be1524ae645f7bb8b36ee2ac2378fd91561be..4027deb7071806fcba313a80cebe694e9f96580e 100644 (file)
@@ -14,7 +14,7 @@ from ..utils import (
 class IviIE(InfoExtractor):
     IE_DESC = 'ivi.ru'
     IE_NAME = 'ivi'
-    _VALID_URL = r'https?://(?:www\.)?ivi\.ru/watch(?:/(?P<compilationid>[^/]+))?/(?P<videoid>\d+)'
+    _VALID_URL = r'https?://(?:www\.)?ivi\.ru/(?:watch/(?:[^/]+/)?|video/player\?.*?videoId=)(?P<videoid>\d+)'
 
     _TESTS = [
         # Single movie