]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[discovery] improve _VALID_URL regex
authorremitamine <remitamine@gmail.com>
Thu, 31 Dec 2015 17:24:49 +0000 (18:24 +0100)
committerremitamine <remitamine@gmail.com>
Thu, 31 Dec 2015 17:24:49 +0000 (18:24 +0100)
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': {