diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-04-18 06:27:11 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-04-18 06:27:11 +0200 |
commit | 0599ef8c0827068184f78745a299d043927db4d9 (patch) | |
tree | 6aac6e5a2c861144d8a5f9c83ecfeb44d5f76277 /youtube_dl/FileDownloader.py | |
parent | bfdf4692955b3ea300b8f6ae30b8b69127922f7e (diff) |
Limit titles to 200 characters (Closes #789)
Diffstat (limited to 'youtube_dl/FileDownloader.py')
-rw-r--r-- | youtube_dl/FileDownloader.py | 4 |
1 files changed, 4 insertions, 0 deletions
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'] |