projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
69a934e
)
[dplay] Relax _VALID_URL (closes #15458)
author
Sergey M․
<dstftw@gmail.com>
Tue, 30 Jan 2018 18:29:00 +0000
(
01:29
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 30 Jan 2018 18:29:00 +0000
(
01:29
+0700)
youtube_dl/extractor/dplay.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/dplay.py
b/youtube_dl/extractor/dplay.py
index a08dace4318a05dfacd9c6e9ad94508934b615ca..b734467734c30a880badab5ff72cfac7543b3b56 100644
(file)
--- a/
youtube_dl/extractor/dplay.py
+++ b/
youtube_dl/extractor/dplay.py
@@
-26,7
+26,7
@@
from ..utils import (
class DPlayIE(InfoExtractor):
class DPlayIE(InfoExtractor):
- _VALID_URL = r'https?://(?P<domain>www\.(?P<host>dplay\.(?P<country>dk|se|no)))/(?:video
er
/)?(?P<id>[^/]+/[^/?#]+)'
+ _VALID_URL = r'https?://(?P<domain>www\.(?P<host>dplay\.(?P<country>dk|se|no)))/(?:video
(?:er|s)
/)?(?P<id>[^/]+/[^/?#]+)'
_TESTS = [{
# non geo restricted, via secure api, unsigned download hls URL
_TESTS = [{
# non geo restricted, via secure api, unsigned download hls URL
@@
-89,9
+89,12
@@
class DPlayIE(InfoExtractor):
'skip_download': True,
},
}, {
'skip_download': True,
},
}, {
- # geo restricted, bypassable via X-Forwarded-For
+
'url': 'https://www.dplay.dk/videoer/singleliv/season-5-episode-3',
'only_matching': True,
'url': 'https://www.dplay.dk/videoer/singleliv/season-5-episode-3',
'only_matching': True,
+ }, {
+ 'url': 'https://www.dplay.se/videos/sofias-anglar/sofias-anglar-1001',
+ 'only_matching': True,
}]
def _real_extract(self, url):
}]
def _real_extract(self, url):