summary refs log tree commit diff
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2016-01-15 15:12:35 +0100
committerremitamine <remitamine@gmail.com>2016-01-15 15:12:35 +0100
commit014b5c59d827c413663394c23384524ef6998f0b (patch)
tree31a9a79b3440587208ff7540f85ed0ae186be808
parentfad7a336a162cda2a53a77bf24fe9f666ec3ce07 (diff)
downloadyoutube-dl-014b5c59d827c413663394c23384524ef6998f0b.tar.gz
youtube-dl-014b5c59d827c413663394c23384524ef6998f0b.tar.xz
youtube-dl-014b5c59d827c413663394c23384524ef6998f0b.zip
[theplatform] extend _VALID_URL regex
-rw-r--r--youtube_dl/extractor/theplatform.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/theplatform.py b/youtube_dl/extractor/theplatform.py
index 0bf6726b5..10f2cad55 100644
--- a/youtube_dl/extractor/theplatform.py
+++ b/youtube_dl/extractor/theplatform.py
@@ -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 = [{