diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-03-25 14:27:23 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-03-25 14:27:23 +0100 |
commit | 865cbf4fc513bc4954cd32a64a4ed4c40c74f90a (patch) | |
tree | fcb84a96c3c1451f6206e4d3b5f98114cde78a9c /youtube_dl | |
parent | 196f061cac4ec72c83d1cfa9e4e944b10e051712 (diff) |
[comedycentral] Correct uri (Fixes #2627)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/comedycentral.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/extractor/comedycentral.py b/youtube_dl/extractor/comedycentral.py index 1c29ddeb2..346ecded6 100644 --- a/youtube_dl/extractor/comedycentral.py +++ b/youtube_dl/extractor/comedycentral.py @@ -141,6 +141,9 @@ class ComedyCentralShowsIE(InfoExtractor): mMovieParams = [("http://media.mtvnservices.com/" + altMovieParams[0], altMovieParams[0])] uri = mMovieParams[0][1] + # Correct cc.com in uri + uri = re.sub(r'(episode:[^.]+)(\.cc)?\.com', r'\1.cc.com', uri) + index_url = 'http://%s.cc.com/feeds/mrss?%s' % (show_name, compat_urllib_parse.urlencode({'uri': uri})) idoc = self._download_xml( index_url, epTitle, |