A feature-rich command-line audio/video downloader
[comedycentral] Allow URLs with query parts (fixes #2661)
Philipp Hagemeister651486621dd7
diff --git a/test/test_all_urls.py b/test/test_all_urls.pyindex dffe3f9585..ed041ffda0 100644--- a/test/test_all_urls.py+++ b/test/test_all_urls.py@@ -150,6 +150,9 @@ class TestAllURLsMatching(unittest.TestCase):self.assertMatch('http://thecolbertreport.cc.com/videos/29w6fx/-realhumanpraise-for-fox-news',['ComedyCentralShows'])+ self.assertMatch(+ 'http://thecolbertreport.cc.com/videos/gh6urb/neil-degrasse-tyson-pt--1?xrs=eml_col_031114',+ ['ComedyCentralShows'])if __name__ == '__main__':unittest.main()diff --git a/youtube_dl/extractor/comedycentral.py b/youtube_dl/extractor/comedycentral.pyindex cbc212065c..ed0c6ea2ca 100644--- a/youtube_dl/extractor/comedycentral.py+++ b/youtube_dl/extractor/comedycentral.py@@ -45,10 +45,11 @@ class ComedyCentralShowsIE(InfoExtractor):(?P<clip>(?:videos/[^/]+/(?P<videotitle>[^/?#]+))|(the-colbert-report-(videos|collections)/(?P<clipID>[0-9]+)/[^/]*/(?P<cntitle>.*?))- |(watch/(?P<date>[^/]*)/(?P<tdstitle>.*)))|+ |(watch/(?P<date>[^/]*)/(?P<tdstitle>.*))+ )|(?P<interview>extended-interviews/(?P<interID>[0-9a-z]+)/(?:playlist_tds_extended_)?(?P<interview_title>.*?)(/.*?)?)))- $'''+ (?:[?#].*|$)'''_TEST = {'url': 'http://thedailyshow.cc.com/watch/thu-december-13-2012/kristen-stewart','md5': '4e2f5cb088a83cd8cdb7756132f9739d',