From 6edb1a73ee5fac3c3518e04791aca16eedb2dbd3 Mon Sep 17 00:00:00 2001 From: Mark Lee Date: Wed, 26 Mar 2014 10:48:13 -0700 Subject: [PATCH] [comedycentral] join playlists into one video when requested --- youtube_dl/extractor/comedycentral.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/comedycentral.py b/youtube_dl/extractor/comedycentral.py index 483ae5761..775eb8ebf 100644 --- a/youtube_dl/extractor/comedycentral.py +++ b/youtube_dl/extractor/comedycentral.py @@ -203,9 +203,18 @@ class ComedyCentralShowsIE(InfoExtractor): 'description': description, }) + playlist_title = show_name + ' ' + title + if self._downloader.params.get('joinparts') and len(entries) > 1: + return { + 'id': epTitle, + 'title': playlist_title, + 'description': description, + 'formats': self._entry_formats_to_parts(entries) + } + return { '_type': 'playlist', 'entries': entries, - 'title': show_name + ' ' + title, + 'title': playlist_title, 'description': description, }