From: Sergey M․ Date: Thu, 24 Sep 2015 23:18:45 +0000 (+0600) Subject: [condenast] Do not capture unused group in _VALID_URL X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=0940c5b4c6a068d4919fd29a8db2a85ab3bbf703;p=youtube-dl [condenast] Do not capture unused group in _VALID_URL --- diff --git a/youtube_dl/extractor/condenast.py b/youtube_dl/extractor/condenast.py index ef1d28091..d6949ca28 100644 --- a/youtube_dl/extractor/condenast.py +++ b/youtube_dl/extractor/condenast.py @@ -44,7 +44,7 @@ class CondeNastIE(InfoExtractor): 'wmagazine': 'W Magazine', } - _VALID_URL = r'http://(video|www|player)\.(?P%s)\.com/(?Pwatch|series|video|embed)/(?P[^/?#]+)' % '|'.join(_SITES.keys()) + _VALID_URL = r'http://(?:video|www|player)\.(?P%s)\.com/(?Pwatch|series|video|embed)/(?P[^/?#]+)' % '|'.join(_SITES.keys()) IE_DESC = 'Condé Nast media group: %s' % ', '.join(sorted(_SITES.values())) EMBED_URL = r'(?:https?:)?//player\.(?P%s)\.com/(?Pembed)/.+?' % '|'.join(_SITES.keys())