Browse Source

[vice] Do not capture unused groups in _VALID_URL

Sergey M․ 10 năm trước cách đây
mục cha
commit
772acaf31f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 = [
         {