2
0
Эх сурвалжийг харах

[wdr] Add support for more wdrmaus subpages

Philipp Hagemeister 11 жил өмнө
parent
commit
9a7b072e38

+ 1 - 1
youtube_dl/extractor/wdr.py

@@ -116,7 +116,7 @@ class WDRIE(InfoExtractor):
 
 
 
 
 class WDRMausIE(InfoExtractor):
 class WDRMausIE(InfoExtractor):
-    _VALID_URL = 'http://(?:www\.)?wdrmaus\.de/(?:extras/|sachgeschichten/sachgeschichten/)?(?P<id>[^/?#]+)(?:/index\.php5|\.php5|/(?:$|[?#]))'
+    _VALID_URL = 'http://(?:www\.)?wdrmaus\.de/(?:[^/]+/){,2}(?P<id>[^/?#]+)(?:/index\.php5|(?<!index)\.php5|/(?:$|[?#]))'
     IE_DESC = 'Sendung mit der Maus'
     IE_DESC = 'Sendung mit der Maus'
     _TESTS = [{
     _TESTS = [{
         'url': 'http://www.wdrmaus.de/aktuelle-sendung/index.php5',
         'url': 'http://www.wdrmaus.de/aktuelle-sendung/index.php5',