projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36ddd8b
)
[comedycentral] Correct handling when latest tds episode is a special-episode instead...
author
Philipp Hagemeister
<phihag@phihag.de>
Tue, 24 Jun 2014 08:50:41 +0000
(10:50 +0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Tue, 24 Jun 2014 08:50:41 +0000
(10:50 +0200)
youtube_dl/extractor/comedycentral.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/comedycentral.py
b/youtube_dl/extractor/comedycentral.py
index ba4d73ab8bf3ff893fdb2c07fc57f0cbc009ec44..8af0abade8c88fea3fa7fc4e7329e10802b43a5a 100644
(file)
--- a/
youtube_dl/extractor/comedycentral.py
+++ b/
youtube_dl/extractor/comedycentral.py
@@
-130,7
+130,7
@@
class ComedyCentralShowsIE(InfoExtractor):
raise ExtractorError('Invalid redirected URL: ' + url)
if mobj.group('episode') == '':
raise ExtractorError('Redirected URL is still not specific: ' + url)
- epTitle =
mobj.group('episode'
).rpartition('/')[-1]
+ epTitle =
(mobj.group('episode') or mobj.group('videotitle')
).rpartition('/')[-1]
mMovieParams = re.findall('(?:<param name="movie" value="|var url = ")(http://media.mtvnservices.com/([^"]*(?:episode|video).*?:.*?))"', webpage)
if len(mMovieParams) == 0: