[comedycentral:shows] Add support for TDS special editions (Fixes #2733)
authorPhilipp Hagemeister <phihag@phihag.de>
Fri, 11 Apr 2014 07:30:07 +0000 (09:30 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Fri, 11 Apr 2014 07:30:07 +0000 (09:30 +0200)
test/test_all_urls.py
youtube_dl/extractor/comedycentral.py

index 4de2c395ea4d380eefb42ebab14d469d89027736..fb39c5082ac65e911a6b9676898a4e6f3412ae4c 100644 (file)
@@ -165,6 +165,9 @@ class TestAllURLsMatching(unittest.TestCase):
         self.assertMatch(
             'http://thedailyshow.cc.com/video-playlists/npde3s/the-daily-show-19088-highlights',
             ['ComedyCentralShows'])
+        self.assertMatch(
+            'http://thedailyshow.cc.com/special-editions/2l8fdb/special-edition---a-look-back-at-food',
+            ['ComedyCentralShows'])
 
     def test_yahoo_https(self):
         # https://github.com/rg3/youtube-dl/issues/2701
index 0c22ff7869982d6cc4abcc496f22f01d49c2437f..6e3a316c67bc8fcb5cb1a9b8ac50035ee7b54cc2 100644 (file)
@@ -43,7 +43,7 @@ class ComedyCentralShowsIE(InfoExtractor):
                           (?P<showname>thedailyshow|thecolbertreport)\.(?:cc\.)?com/
                          ((?:full-)?episodes/(?:[0-9a-z]{6}/)?(?P<episode>.*)|
                           (?P<clip>
-                              (?:(?:guests/[^/]+|videos|video-playlists)/[^/]+/(?P<videotitle>[^/?#]+))
+                              (?:(?:guests/[^/]+|videos|video-playlists|special-editions)/[^/]+/(?P<videotitle>[^/?#]+))
                               |(the-colbert-report-(videos|collections)/(?P<clipID>[0-9]+)/[^/]*/(?P<cntitle>.*?))
                               |(watch/(?P<date>[^/]*)/(?P<tdstitle>.*))
                           )|