Przeglądaj źródła

[wdr] Add support for more wdrmaus subpages

Philipp Hagemeister 11 lat temu
rodzic
commit
9a7b072e38
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      youtube_dl/extractor/wdr.py

+ 1 - 1
youtube_dl/extractor/wdr.py

@@ -116,7 +116,7 @@ class WDRIE(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'
     _TESTS = [{
         'url': 'http://www.wdrmaus.de/aktuelle-sendung/index.php5',