Browse Source

[nrk:playlist] Restrict _VALID_URL

It would also match /videos/PS... urls
totalwebcasting
Jaime Marquínez Ferrándiz 10 years ago
parent
commit
c9450c7ab1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/nrk.py

+ 1
- 1
youtube_dl/extractor/nrk.py View File

@ -77,7 +77,7 @@ class NRKIE(InfoExtractor):
class NRKPlaylistIE(InfoExtractor): class NRKPlaylistIE(InfoExtractor):
_VALID_URL = r'http://(?:www\.)?nrk\.no/(?:[^/]+/)*(?P<id>[^/]+)'
_VALID_URL = r'http://(?:www\.)?nrk\.no/(?!video)[^/]+/(?P<id>[^/]+)'
_TEST = { _TEST = {
'url': 'http://www.nrk.no/troms/gjenopplev-den-historiske-solformorkelsen-1.12270763', 'url': 'http://www.nrk.no/troms/gjenopplev-den-historiske-solformorkelsen-1.12270763',


Loading…
Cancel
Save