Ver Fonte

[ndr] Relax _VALID_URL (Closes #7383)

Sergey M․ há 9 anos atrás
pai
commit
5003e4283b
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      youtube_dl/extractor/ndr.py

+ 1 - 1
youtube_dl/extractor/ndr.py

@@ -23,7 +23,7 @@ class NDRBaseIE(InfoExtractor):
 class NDRIE(NDRBaseIE):
 class NDRIE(NDRBaseIE):
     IE_NAME = 'ndr'
     IE_NAME = 'ndr'
     IE_DESC = 'NDR.de - Norddeutscher Rundfunk'
     IE_DESC = 'NDR.de - Norddeutscher Rundfunk'
-    _VALID_URL = r'https?://www\.ndr\.de/(?:[^/]+/)+(?P<id>[^/?#]+),[\da-z]+\.html'
+    _VALID_URL = r'https?://www\.ndr\.de/(?:[^/]+/)*(?P<id>[^/?#]+),[\da-z]+\.html'
     _TESTS = [{
     _TESTS = [{
         # httpVideo, same content id
         # httpVideo, same content id
         'url': 'http://www.ndr.de/fernsehen/Party-Poette-und-Parade,hafengeburtstag988.html',
         'url': 'http://www.ndr.de/fernsehen/Party-Poette-und-Parade,hafengeburtstag988.html',