aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-11-20 16:36:53 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-11-20 16:36:53 +0100
commit6adeffa7c686de97c8e259a8ef474bc807d611d7 (patch)
tree27c7d8071c90f9d10d0b68bc7e127d22b0c6cbc0 /youtube_dl/extractor
parentb244b5c3f9082a307f0e1c4ee561594bd389aeb2 (diff)
[comedycentral] Modernize
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/comedycentral.py4
1 files changed, 1 insertions, 3 deletions
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'):