[uplynk,viceland] update tests and change uplynk extractors names
authorRemita Amine <remitamine@gmail.com>
Sun, 14 Aug 2016 21:45:43 +0000 (22:45 +0100)
committerRemita Amine <remitamine@gmail.com>
Sun, 14 Aug 2016 21:45:43 +0000 (22:45 +0100)
youtube_dl/extractor/uplynk.py
youtube_dl/extractor/viceland.py

index 4313bc9cbbd11d01682fad8b4382cf3b5eaeedd3..ae529f690d10606f065e31ef68d73745109578f2 100644 (file)
@@ -11,6 +11,7 @@ from ..utils import (
 
 
 class UplynkIE(InfoExtractor):
+    IE_NAME = 'uplynk'
     _VALID_URL = r'https?://.*?\.uplynk\.com/(?P<path>ext/[0-9a-f]{32}/(?P<external_id>[^/?&]+)|(?P<id>[0-9a-f]{32}))\.(?:m3u8|json)(?:.*?\bpbs=(?P<session_id>[^&]+))?'
     _TEST = {
         'url': 'http://content.uplynk.com/e89eaf2ce9054aa89d92ddb2d817a52e.m3u8',
@@ -54,7 +55,9 @@ class UplynkIE(InfoExtractor):
 
 
 class UplynkPreplayIE(UplynkIE):
+    IE_NAME = 'uplynk:preplay'
     _VALID_URL = r'https?://.*?\.uplynk\.com/preplay2?/(?P<path>ext/[0-9a-f]{32}/(?P<external_id>[^/?&]+)|(?P<id>[0-9a-f]{32}))\.json'
+    _TEST = None
 
     def _real_extract(self, url):
         path, external_id, video_id = re.match(self._VALID_URL, url).groups()
index 814a72fa2138cfc57b451c828aff4553a40faced..da766d8dbb1db043ee5b2bc25745a9a29ff4bd35 100644 (file)
@@ -36,7 +36,7 @@ class VicelandIE(AdobePass):
             # m3u8 download
             'skip_download': True,
         },
-        'add_ie': ['UplynkPreplay', 'Uplynk'],
+        'add_ie': ['UplynkPreplay'],
     }
 
     def _real_extract(self, url):