aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2016-07-09 03:21:50 +0100
committerRemita Amine <remitamine@gmail.com>2016-07-09 03:22:09 +0100
commit8cc9b4016d6ae33d8f6b42b7096e8042e7915003 (patch)
treecbec80f68169a51adc89b30080afdeab93c0b785
parent31eeab9f412d17fc7c455340e46cfcc9c91c3c99 (diff)
downloadyoutube-dl-8cc9b4016d6ae33d8f6b42b7096e8042e7915003.tar.xz
[srmediathek] extend _VALID_URL(closes #9373)
-rw-r--r--youtube_dl/extractor/srmediathek.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/youtube_dl/extractor/srmediathek.py b/youtube_dl/extractor/srmediathek.py
index a2569dfba..409d50304 100644
--- a/youtube_dl/extractor/srmediathek.py
+++ b/youtube_dl/extractor/srmediathek.py
@@ -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):