[comedycentral] Fix youtube-dl :thedailyshow
authorPhilipp Hagemeister <phihag@phihag.de>
Wed, 30 Sep 2015 13:39:47 +0000 (15:39 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Wed, 30 Sep 2015 13:39:52 +0000 (15:39 +0200)
We'll let the generic IE follow the redirect and call back to us with the episode URL

youtube_dl/extractor/comedycentral.py

index 91ebb0ce57136dc0076927acdca4e250774746e1..3e4bd10b61cd8a7346b7262e9f4ec6e8296d7bf1 100644 (file)
@@ -151,12 +151,7 @@ class ComedyCentralShowsIE(MTVServicesInfoExtractor):
         mobj = re.match(self._VALID_URL, url)
 
         if mobj.group('shortname'):
-            if mobj.group('shortname') in ('tds', 'thedailyshow'):
-                url = 'http://thedailyshow.cc.com/full-episodes/'
-            else:
-                url = 'http://thecolbertreport.cc.com/full-episodes/'
-            mobj = re.match(self._VALID_URL, url, re.VERBOSE)
-            assert mobj is not None
+            return self.url_result('http://www.cc.com/shows/the-daily-show-with-trevor-noah/full-episodes')
 
         if mobj.group('clip'):
             if mobj.group('videotitle'):