commit 014b5c59d827c413663394c23384524ef6998f0b parent fad7a336a162cda2a53a77bf24fe9f666ec3ce07 Author: remitamine <remitamine@gmail.com> Date: Fri, 15 Jan 2016 15:12:35 +0100 [theplatform] extend _VALID_URL regex Diffstat:
M | youtube_dl/extractor/theplatform.py | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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 = [{