1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-29 19:47:54 +01:00

[nrk] Relax _VALID_URL (closes #10928)

This commit is contained in:
Sergey M․ 2016-10-19 02:59:44 +07:00
parent df4939b1cd
commit e2628fb6a0
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -113,7 +113,7 @@ class NRKBaseIE(InfoExtractor):
class NRKIE(NRKBaseIE): 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' _API_HOST = 'v8.psapi.nrk.no'
_TESTS = [{ _TESTS = [{
# video # video
@ -137,6 +137,9 @@ class NRKIE(NRKBaseIE):
'description': 'md5:a621f5cc1bd75c8d5104cb048c6b8568', 'description': 'md5:a621f5cc1bd75c8d5104cb048c6b8568',
'duration': 20, 'duration': 20,
} }
}, {
'url': 'nrk:ecc1b952-96dc-4a98-81b9-5296dc7a98d9',
'only_matching': True,
}] }]