]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[theplatform] extend _VALID_URL regex
authorremitamine <remitamine@gmail.com>
Fri, 15 Jan 2016 14:12:35 +0000 (15:12 +0100)
committerremitamine <remitamine@gmail.com>
Fri, 15 Jan 2016 14:12:35 +0000 (15:12 +0100)
youtube_dl/extractor/theplatform.py

index 0bf6726b53641734fd0fcafb73a76d8c3621b302..10f2cad5518d3f3627119cd09a9a812f986cc83c 100644 (file)
@@ -85,7 +85,7 @@ class ThePlatformBaseIE(InfoExtractor):
 class ThePlatformIE(ThePlatformBaseIE):
     _VALID_URL = r'''(?x)
         (?:https?://(?:link|player)\.theplatform\.com/[sp]/(?P<provider_id>[^/]+)/
-           (?:(?P<media>(?:[^/]+/)+select/media/)|(?P<config>(?:[^/\?]+/(?:swf|config)|onsite)/select/))?
+           (?:(?P<media>(?:(?:[^/]+/)+select/)?media/)|(?P<config>(?:[^/\?]+/(?:swf|config)|onsite)/select/))?
          |theplatform:)(?P<id>[^/\?&]+)'''
 
     _TESTS = [{