[once] Relax _VALID_URL (Closes #8976)
authorSergey M․ <dstftw@gmail.com>
Fri, 25 Mar 2016 13:51:28 +0000 (19:51 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 25 Mar 2016 13:51:28 +0000 (19:51 +0600)
youtube_dl/extractor/once.py

index 5db949b176141863a290adfcd1fe3bbda11076b7..1bf96ea56e29849725db4b9c799ec63330c34224 100644 (file)
@@ -7,7 +7,7 @@ from .common import InfoExtractor
 
 
 class OnceIE(InfoExtractor):
-    _VALID_URL = r'https?://once\.unicornmedia\.com/now/[^/]+/[^/]+/(?P<domain_id>[^/]+)/(?P<application_id>[^/]+)/(?:[^/]+/)?(?P<media_item_id>[^/]+)/content\.(?:once|m3u8|mp4)'
+    _VALID_URL = r'https?://.+?\.unicornmedia\.com/now/[^/]+/[^/]+/(?P<domain_id>[^/]+)/(?P<application_id>[^/]+)/(?:[^/]+/)?(?P<media_item_id>[^/]+)/content\.(?:once|m3u8|mp4)'
     ADAPTIVE_URL_TEMPLATE = 'http://once.unicornmedia.com/now/master/playlist/%s/%s/%s/content.m3u8'
     PROGRESSIVE_URL_TEMPLATE = 'http://once.unicornmedia.com/now/media/progressive/%s/%s/%s/%s/content.mp4'