1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-02 17:22:31 +01:00

[comedycentral] Correct handling when latest tds episode is a special-episode instead of a regular one

This commit is contained in:
Philipp Hagemeister 2014-06-24 10:50:41 +02:00
parent 36ddd8b3f7
commit 60b2dd1285

View File

@ -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('(?:<param name="movie" value="|var url = ")(http://media.mtvnservices.com/([^"]*(?:episode|video).*?:.*?))"', webpage)
if len(mMovieParams) == 0: