aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/nrk.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-10-19 02:59:44 +0700
committerSergey M․ <dstftw@gmail.com>2016-10-19 02:59:44 +0700
commite2628fb6a028bd48f39ee556ca5ecb07aceba7f5 (patch)
treeae670e69c0785f6a1b5b84272d19de617427e674 /youtube_dl/extractor/nrk.py
parentdf4939b1cd84964132ee239c15687c5a0070df51 (diff)
[nrk] Relax _VALID_URL (closes #10928)
Diffstat (limited to 'youtube_dl/extractor/nrk.py')
-rw-r--r--youtube_dl/extractor/nrk.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/nrk.py b/youtube_dl/extractor/nrk.py
index d471eb20c..c30428208 100644
--- a/youtube_dl/extractor/nrk.py
+++ b/youtube_dl/extractor/nrk.py
@@ -113,7 +113,7 @@ class NRKBaseIE(InfoExtractor):
class NRKIE(NRKBaseIE):
- _VALID_URL = r'(?:nrk:|https?://(?:www\.)?nrk\.no/video/PS\*)(?P<id>\d+)'
+ _VALID_URL = r'(?:nrk:|https?://(?:www\.)?nrk\.no/video/PS\*)(?P<id>[^/?#&]+)'
_API_HOST = 'v8.psapi.nrk.no'
_TESTS = [{
# video
@@ -137,6 +137,9 @@ class NRKIE(NRKBaseIE):
'description': 'md5:a621f5cc1bd75c8d5104cb048c6b8568',
'duration': 20,
}
+ }, {
+ 'url': 'nrk:ecc1b952-96dc-4a98-81b9-5296dc7a98d9',
+ 'only_matching': True,
}]