浏览代码

[comedycentral] Modernize

Philipp Hagemeister 10 年之前
父节点
当前提交
6adeffa7c6
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      youtube_dl/extractor/comedycentral.py

+ 1 - 3
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'):