[nrk:playlist] Restrict _VALID_URL
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 21 Mar 2015 13:00:37 +0000 (14:00 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 21 Mar 2015 13:00:37 +0000 (14:00 +0100)
It would also match /videos/PS... urls

youtube_dl/extractor/nrk.py

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