浏览代码

[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 = [
         {