Explorar el Código

[drtv] Fix _VALID_URL (Closes #3735)

Sergey M․ hace 11 años
padre
commit
e5a93354bc
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      youtube_dl/extractor/drtv.py

+ 1 - 1
youtube_dl/extractor/drtv.py

@@ -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',