[comedycentral] Modernize
authorPhilipp Hagemeister <phihag@phihag.de>
Thu, 20 Nov 2014 15:36:53 +0000 (16:36 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Thu, 20 Nov 2014 15:36:53 +0000 (16:36 +0100)
youtube_dl/extractor/comedycentral.py

index f0da1844fa5274be4d3e36d36ecba3b99669e552..2e3ef3fdab4c25f2818f46a820702056ceb3f294 100644 (file)
@@ -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'):