diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-06-24 10:50:41 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-06-24 10:50:41 +0200 |
commit | 60b2dd1285a7aeb848e0f3c24f5e9480f9cef616 (patch) | |
tree | 5c93e050d10ca4c891245b34a79cb0d4bfe15d60 /youtube_dl | |
parent | 36ddd8b3f7632f5ca4376a37bb5e0eb6aefb16d7 (diff) |
[comedycentral] Correct handling when latest tds episode is a special-episode instead of a regular one
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/comedycentral.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/comedycentral.py b/youtube_dl/extractor/comedycentral.py index ba4d73ab8..8af0abade 100644 --- 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: |