[drtv] Fix _VALID_URL (Closes #3735)
authorSergey M․ <dstftw@gmail.com>
Sat, 13 Sep 2014 15:07:09 +0000 (22:07 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 13 Sep 2014 15:07:09 +0000 (22:07 +0700)
youtube_dl/extractor/drtv.py

index cdccfd376b80ee5ebc61c25ab4cd00e12dcfc458..9d6ce1f48cd41c390da308768f131b6c44521629 100644 (file)
@@ -8,7 +8,7 @@ from ..utils import parse_iso8601
 
 
 class DRTVIE(SubtitlesInfoExtractor):
-    _VALID_URL = r'http://(?:www\.)?dr\.dk/tv/se/[^/]+/(?P<id>[\da-z-]+)'
+    _VALID_URL = r'http://(?:www\.)?dr\.dk/tv/se/(?:[^/]+/)+(?P<id>[\da-z-]+)(?:[/#?]|$)'
 
     _TEST = {
         'url': 'http://www.dr.dk/tv/se/partiets-mand/partiets-mand-7-8',