aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/uplynk.py
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2016-08-14 22:45:43 +0100
committerRemita Amine <remitamine@gmail.com>2016-08-14 22:45:43 +0100
commit24eb13b1c6889cc4399b854cde931e5a5c5f5346 (patch)
tree05bf4f72cf972504735c75c361c5ccfbe1458fe8 /youtube_dl/extractor/uplynk.py
parent525e0316c046ebcb689ebc01c4a1c53cf289b514 (diff)
[uplynk,viceland] update tests and change uplynk extractors names
Diffstat (limited to 'youtube_dl/extractor/uplynk.py')
-rw-r--r--youtube_dl/extractor/uplynk.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/extractor/uplynk.py b/youtube_dl/extractor/uplynk.py
index 4313bc9cb..ae529f690 100644
--- a/youtube_dl/extractor/uplynk.py
+++ b/youtube_dl/extractor/uplynk.py
@@ -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()