Skip to content

A feature-rich command-line audio/video downloader

[discovery] improve _VALID_URL regex

remitamineb05641ce405e
diff --git a/youtube_dl/extractor/discovery.py b/youtube_dl/extractor/discovery.py
index 2626d85e3a..ce680a9f31 100644
--- a/youtube_dl/extractor/discovery.py
+++ b/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': {