Browse Source

[comedycentral] Modernize

master
Philipp Hagemeister 10 years ago
parent
commit
6adeffa7c6
1 changed files with 1 additions and 3 deletions
  1. 4
      youtube_dl/extractor/comedycentral.py

4
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'):

Loading…
Cancel
Save