From: Philipp Hagemeister Date: Thu, 20 Nov 2014 15:36:53 +0000 (+0100) Subject: [comedycentral] Modernize X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=6adeffa7c686de97c8e259a8ef474bc807d611d7;p=youtube-dl [comedycentral] Modernize --- diff --git a/youtube_dl/extractor/comedycentral.py b/youtube_dl/extractor/comedycentral.py index f0da1844f..2e3ef3fda 100644 --- a/youtube_dl/extractor/comedycentral.py +++ b/youtube_dl/extractor/comedycentral.py @@ -109,9 +109,7 @@ class ComedyCentralShowsIE(MTVServicesInfoExtractor): } def _real_extract(self, url): - mobj = re.match(self._VALID_URL, url, re.VERBOSE) - if mobj is None: - raise ExtractorError('Invalid URL: %s' % url) + mobj = re.match(self._VALID_URL, url) if mobj.group('shortname'): if mobj.group('shortname') in ('tds', 'thedailyshow'):