Skip to content

Commit

Permalink
[nrktv] Relax _VALID_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Dec 4, 2020
1 parent 5d76986 commit e8c0af0
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions youtube_dl/extractor/nrk.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,7 @@ def _real_extract(self, url):
class NRKTVIE(NRKBaseIE):
IE_DESC = 'NRK TV and NRK Radio'
_EPISODE_RE = r'(?P<id>[a-zA-Z]{4}\d{8})'
_VALID_URL = r'''(?x)
https?://
(?:tv|radio)\.nrk(?:super)?\.no/
(?:serie(?:/[^/]+){1,}|program)/
(?![Ee]pisodes)%s
(?:/\d{2}-\d{2}-\d{4})?
(?:\#del=(?P<part_id>\d+))?
''' % _EPISODE_RE
_VALID_URL = r'https?://(?:tv|radio)\.nrk(?:super)?\.no/(?:[^/]+/)*%s' % _EPISODE_RE
_API_HOSTS = ('psapi-ne.nrk.no', 'psapi-we.nrk.no')
_TESTS = [{
'url': 'https://tv.nrk.no/program/MDDP12000117',
Expand Down

0 comments on commit e8c0af0

Please sign in to comment.