[discovery] improve _VALID_URL regex
[youtube-dl] / youtube_dl / extractor / discovery.py
index 2626d85e3a4e1dd763c61a77ae1edc99030f1a3a..ce680a9f3192832a7fb9e35956382f85bc60d043 100644 (file)
@@ -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': {