]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[drtv] Improve _VALID_URL (#4814)
authorSergey M․ <dstftw@gmail.com>
Fri, 30 Jan 2015 16:42:11 +0000 (22:42 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 30 Jan 2015 16:42:11 +0000 (22:42 +0600)
youtube_dl/extractor/drtv.py

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