浏览代码

[ivi] Add support for ivi.tv

Sergey M․ 6 年之前
父节点
当前提交
022218f2f0
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      youtube_dl/extractor/ivi.py

+ 6 - 2
youtube_dl/extractor/ivi.py

@@ -15,7 +15,7 @@ from ..utils import (
 class IviIE(InfoExtractor):
 class IviIE(InfoExtractor):
     IE_DESC = 'ivi.ru'
     IE_DESC = 'ivi.ru'
     IE_NAME = 'ivi'
     IE_NAME = 'ivi'
-    _VALID_URL = r'https?://(?:www\.)?ivi\.ru/(?:watch/(?:[^/]+/)?|video/player\?.*?videoId=)(?P<id>\d+)'
+    _VALID_URL = r'https?://(?:www\.)?ivi\.(?:ru|tv)/(?:watch/(?:[^/]+/)?|video/player\?.*?videoId=)(?P<id>\d+)'
     _GEO_BYPASS = False
     _GEO_BYPASS = False
     _GEO_COUNTRIES = ['RU']
     _GEO_COUNTRIES = ['RU']
 
 
@@ -65,7 +65,11 @@ class IviIE(InfoExtractor):
                 'thumbnail': r're:^https?://.*\.jpg$',
                 'thumbnail': r're:^https?://.*\.jpg$',
             },
             },
             'skip': 'Only works from Russia',
             'skip': 'Only works from Russia',
-        }
+        },
+        {
+            'url': 'https://www.ivi.tv/watch/33560/',
+            'only_matching': True,
+        },
     ]
     ]
 
 
     # Sorted by quality
     # Sorted by quality