Skip to content

Commit

Permalink
[nrk] Relax _VALID_URL (closes #10928)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Oct 18, 2016
1 parent df4939b commit e2628fb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion youtube_dl/extractor/nrk.py
Expand Up @@ -113,7 +113,7 @@ def video_id_and_title(idx):


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
Expand All @@ -137,6 +137,9 @@ class NRKIE(NRKBaseIE):
'description': 'md5:a621f5cc1bd75c8d5104cb048c6b8568',
'duration': 20,
}
}, {
'url': 'nrk:ecc1b952-96dc-4a98-81b9-5296dc7a98d9',
'only_matching': True,
}]


Expand Down

0 comments on commit e2628fb

Please sign in to comment.