[comedycentral] join playlists into one video when requested

This commit is contained in:
Mark Lee 2014-03-26 10:48:13 -07:00
parent 7ee7436c6e
commit 6edb1a73ee

View File

@ -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,
}