From: Philipp Hagemeister Date: Thu, 18 Apr 2013 04:27:11 +0000 (+0200) Subject: Limit titles to 200 characters (Closes #789) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=0599ef8c0827068184f78745a299d043927db4d9;p=youtube-dl Limit titles to 200 characters (Closes #789) --- diff --git a/youtube_dl/FileDownloader.py b/youtube_dl/FileDownloader.py index d4f9cc621..96da754fb 100644 --- a/youtube_dl/FileDownloader.py +++ b/youtube_dl/FileDownloader.py @@ -426,6 +426,10 @@ class FileDownloader(object): def process_info(self, info_dict): """Process a single dictionary returned by an InfoExtractor.""" + info_dict['fulltitle'] = info_dict['title'] + if len(info_dict['title']) > 200: + info_dict['title'] = info_dict['title'][:197] + u'...' + # Keep for backwards compatibility info_dict['stitle'] = info_dict['title']