projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Unify coding cookie
[youtube-dl]
/
youtube_dl
/
extractor
/
srmediathek.py
diff --git
a/youtube_dl/extractor/srmediathek.py
b/youtube_dl/extractor/srmediathek.py
index 74d01183f5f396fb9499a8426775886faed5961d..b03272f7a273e8a3726adb03d805bd2a449849bf 100644
(file)
--- a/
youtube_dl/extractor/srmediathek.py
+++ b/
youtube_dl/extractor/srmediathek.py
@@
-1,4
+1,4
@@
-#
en
coding: utf-8
+# coding: utf-8
from __future__ import unicode_literals
from .ard import ARDMediathekIE
from __future__ import unicode_literals
from .ard import ARDMediathekIE
@@
-9,8
+9,9
@@
from ..utils import (
class SRMediathekIE(ARDMediathekIE):
class SRMediathekIE(ARDMediathekIE):
+ IE_NAME = 'sr:mediathek'
IE_DESC = 'Saarländischer Rundfunk'
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',
_TESTS = [{
'url': 'http://sr-mediathek.sr-online.de/index.php?seite=7&id=28455',
@@
-34,7
+35,9
@@
class SRMediathekIE(ARDMediathekIE):
# m3u8 download
'skip_download': True,
},
# 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):
}]
def _real_extract(self, url):