aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-04-11 09:30:07 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-04-11 09:30:07 +0200
commit7753cadbfa4f0d79b6fe493253a3e8ca49305399 (patch)
tree3353015874760618a06160d021feadae9eefcb0f
parent3950450342c28466dbb29e13d6eb9fd3db6ab8c0 (diff)
[comedycentral:shows] Add support for TDS special editions (Fixes #2733)
-rw-r--r--test/test_all_urls.py3
-rw-r--r--youtube_dl/extractor/comedycentral.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/test/test_all_urls.py b/test/test_all_urls.py
index 4de2c395e..fb39c5082 100644
--- a/test/test_all_urls.py
+++ b/test/test_all_urls.py
@@ -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
diff --git a/youtube_dl/extractor/comedycentral.py b/youtube_dl/extractor/comedycentral.py
index 0c22ff786..6e3a316c6 100644
--- a/youtube_dl/extractor/comedycentral.py
+++ b/youtube_dl/extractor/comedycentral.py
@@ -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>.*))
)|