projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
196f061
)
[comedycentral] Correct uri (Fixes #2627)
author
Philipp Hagemeister
<phihag@phihag.de>
Tue, 25 Mar 2014 13:27:23 +0000
(14:27 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Tue, 25 Mar 2014 13:27:23 +0000
(14:27 +0100)
youtube_dl/extractor/comedycentral.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/comedycentral.py
b/youtube_dl/extractor/comedycentral.py
index 1c29ddeb29321b2aa60dcd98e55ea52be49b3101..346ecded62c9278e37f059afa5ab4f91f27b850d 100644
(file)
--- 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,