From 60b2dd1285a7aeb848e0f3c24f5e9480f9cef616 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Tue, 24 Jun 2014 10:50:41 +0200 Subject: [PATCH] [comedycentral] Correct handling when latest tds episode is a special-episode instead of a regular one --- youtube_dl/extractor/comedycentral.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ def _real_extract(self, url): 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('(?: