]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[rts] Improve _VALID_URL
authorSergey M․ <dstftw@gmail.com>
Tue, 2 Dec 2014 16:24:47 +0000 (22:24 +0600)
committerSergey M․ <dstftw@gmail.com>
Tue, 2 Dec 2014 16:24:47 +0000 (22:24 +0600)
youtube_dl/extractor/rts.py

index c31049c0e69a3bc11eba32541ce0f158964a1549..dc59a5e5c0da8c6e2001b411a03451604ca190f3 100644 (file)
@@ -15,7 +15,7 @@ from ..utils import (
 
 class RTSIE(InfoExtractor):
     IE_DESC = 'RTS.ch'
-    _VALID_URL = r'^https?://(?:www\.)?rts\.ch/(?:(?:[^/]+/){2,}(?P<id>[0-9]+)-(?P<display_id>.+?)\.html|play/tv/[^/]+/video/(?P<display_id_new>.+?)\?id=(?P<id_new>[0-9]+))'
+    _VALID_URL = r'https?://(?:www\.)?rts\.ch/(?:(?:[^/]+/){2,}(?P<id>[0-9]+)-(?P<display_id>.+?)\.html|play/tv/[^/]+/video/(?P<display_id_new>.+?)\?id=(?P<id_new>[0-9]+))'
 
     _TESTS = [
         {