]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[condenast] Do not capture unused group in _VALID_URL
authorSergey M․ <dstftw@gmail.com>
Thu, 24 Sep 2015 23:18:45 +0000 (05:18 +0600)
committerSergey M․ <dstftw@gmail.com>
Thu, 24 Sep 2015 23:18:45 +0000 (05:18 +0600)
youtube_dl/extractor/condenast.py

index ef1d280913d44b71b116001ab1cc6b78b5921943..d6949ca28f9605fc69c0ee2adb032217903da393 100644 (file)
@@ -44,7 +44,7 @@ class CondeNastIE(InfoExtractor):
         'wmagazine': 'W Magazine',
     }
 
-    _VALID_URL = r'http://(video|www|player)\.(?P<site>%s)\.com/(?P<type>watch|series|video|embed)/(?P<id>[^/?#]+)' % '|'.join(_SITES.keys())
+    _VALID_URL = r'http://(?:video|www|player)\.(?P<site>%s)\.com/(?P<type>watch|series|video|embed)/(?P<id>[^/?#]+)' % '|'.join(_SITES.keys())
     IE_DESC = 'Condé Nast media group: %s' % ', '.join(sorted(_SITES.values()))
 
     EMBED_URL = r'(?:https?:)?//player\.(?P<site>%s)\.com/(?P<type>embed)/.+?' % '|'.join(_SITES.keys())