summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2014-12-02 20:53:19 +0600
committerSergey M․ <dstftw@gmail.com>2014-12-02 20:53:19 +0600
commit752c8c9b7635137c519ac9b0872c7155322e51f8 (patch)
tree3ee3ce9fde8b68ec163928f62c42725699d18b93
parentb1399a144deb810a6d599e500391befe93142cf9 (diff)
downloadyoutube-dl-752c8c9b7635137c519ac9b0872c7155322e51f8.tar.gz
youtube-dl-752c8c9b7635137c519ac9b0872c7155322e51f8.tar.xz
youtube-dl-752c8c9b7635137c519ac9b0872c7155322e51f8.zip
[rts] Improve _VALID_URL
-rw-r--r--youtube_dl/extractor/rts.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/youtube_dl/extractor/rts.py b/youtube_dl/extractor/rts.py
index 82d783078..c31049c0e 100644
--- a/youtube_dl/extractor/rts.py
+++ b/youtube_dl/extractor/rts.py
@@ -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 = [
         {
@@ -117,6 +117,10 @@ class RTSIE(InfoExtractor):
                 'thumbnail': 're:^https?://.*\.image',
                 'view_count': int,
             },
+        },
+        {
+            'url': 'http://www.rts.ch/play/tv/le-19h30/video/le-chantier-du-nouveau-parlement-vaudois-a-permis-une-trouvaille-historique?id=6348280',
+            'only_matching': True,
         }
     ]