projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8936f68
)
[nrk] Update _API_HOST and relax _VALID_URL
author
Sergey M․
<dstftw@gmail.com>
Sun, 19 Feb 2017 17:59:31 +0000
(
00:59
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 19 Feb 2017 17:59:31 +0000
(
00:59
+0700)
youtube_dl/extractor/nrk.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/nrk.py
b/youtube_dl/extractor/nrk.py
index 13af9ed1f7395e178774036ea8ae68dab62c8570..7b98626f23a91324febc19032a908bb625118d69 100644
(file)
--- a/
youtube_dl/extractor/nrk.py
+++ b/
youtube_dl/extractor/nrk.py
@@
-164,12
+164,12
@@
class NRKIE(NRKBaseIE):
https?://
(?:
(?:www\.)?nrk\.no/video/PS\*|
https?://
(?:
(?:www\.)?nrk\.no/video/PS\*|
- v8
-
psapi\.nrk\.no/mediaelement/
+ v8
[-.]
psapi\.nrk\.no/mediaelement/
)
)
)
)
- (?P<id>[^
/
?#&]+)
+ (?P<id>[^?#&]+)
'''
'''
- _API_HOST = 'v8
.
psapi.nrk.no'
+ _API_HOST = 'v8
-
psapi.nrk.no'
_TESTS = [{
# video
'url': 'http://www.nrk.no/video/PS*150533',
_TESTS = [{
# video
'url': 'http://www.nrk.no/video/PS*150533',
@@
-195,6
+195,9
@@
class NRKIE(NRKBaseIE):
}, {
'url': 'nrk:ecc1b952-96dc-4a98-81b9-5296dc7a98d9',
'only_matching': True,
}, {
'url': 'nrk:ecc1b952-96dc-4a98-81b9-5296dc7a98d9',
'only_matching': True,
+ }, {
+ 'url': 'nrk:clip/7707d5a3-ebe7-434a-87d5-a3ebe7a34a70',
+ 'only_matching': True,
}, {
'url': 'https://v8-psapi.nrk.no/mediaelement/ecc1b952-96dc-4a98-81b9-5296dc7a98d9',
'only_matching': True,
}, {
'url': 'https://v8-psapi.nrk.no/mediaelement/ecc1b952-96dc-4a98-81b9-5296dc7a98d9',
'only_matching': True,