Преглед изворни кода

[vice] Do not capture unused groups in _VALID_URL

Sergey M․ пре 10 година
родитељ
комит
772acaf31f
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      youtube_dl/extractor/vice.py

+ 1 - 1
youtube_dl/extractor/vice.py

@@ -7,7 +7,7 @@ from ..utils import ExtractorError
 
 
 class ViceIE(InfoExtractor):
-    _VALID_URL = r'https?://(.+?\.)?vice\.com/.*?/(?P<name>.+)'
+    _VALID_URL = r'https?://(?:.+?\.)?vice\.com/.*?/(?P<name>.+)'
 
     _TESTS = [
         {