[srmediathek] extend _VALID_URL(closes #9373)
authorRemita Amine <remitamine@gmail.com>
Sat, 9 Jul 2016 02:21:50 +0000 (03:21 +0100)
committerRemita Amine <remitamine@gmail.com>
Sat, 9 Jul 2016 02:22:09 +0000 (03:22 +0100)
youtube_dl/extractor/srmediathek.py

index a2569dfba1f01a64dbd3abb4fabca43b642a2ddf..409d5030422652e26fff1102c7fee1302f2b07b9 100644 (file)
@@ -11,7 +11,7 @@ from ..utils import (
 class SRMediathekIE(ARDMediathekIE):
     IE_NAME = 'sr:mediathek'
     IE_DESC = 'Saarländischer Rundfunk'
-    _VALID_URL = r'https?://sr-mediathek\.sr-online\.de/index\.php\?.*?&id=(?P<id>[0-9]+)'
+    _VALID_URL = r'https?://sr-mediathek(?:\.sr-online)?\.de/index\.php\?.*?&id=(?P<id>[0-9]+)'
 
     _TESTS = [{
         'url': 'http://sr-mediathek.sr-online.de/index.php?seite=7&id=28455',
@@ -35,7 +35,9 @@ class SRMediathekIE(ARDMediathekIE):
             # m3u8 download
             'skip_download': True,
         },
-        'expected_warnings': ['Unable to download f4m manifest']
+    }, {
+        'url': 'http://sr-mediathek.de/index.php?seite=7&id=7480',
+        'only_matching': True,
     }]
 
     def _real_extract(self, url):