瀏覽代碼

[discovery] improve _VALID_URL regex

remitamine 9 年之前
父節點
當前提交
b05641ce40
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/discovery.py

+ 1 - 1
youtube_dl/extractor/discovery.py

@@ -19,7 +19,7 @@ class DiscoveryIE(InfoExtractor):
             sciencechannel|
             tlc|
             velocity
-        )\.com/([^/]+/)*(?P<id>[^\./\?#]+)'''
+        )\.com/(?:[^/]+/)*(?P<id>[^./?#]+)'''
     _TESTS = [{
         'url': 'http://www.discovery.com/tv-shows/mythbusters/videos/mission-impossible-outtakes.htm',
         'info_dict': {