From 909a247bbc45bdadac1375b08c5ed1cbcfbccb8a Mon Sep 17 00:00:00 2001 From: Chronial Date: Wed, 28 Nov 2012 00:45:04 +0100 Subject: [PATCH] add ascii title to title format --- youtube_dl/FileDownloader.py | 1 + 1 file changed, 1 insertion(+) diff --git a/youtube_dl/FileDownloader.py b/youtube_dl/FileDownloader.py index 4c79be432..825556f82 100644 --- a/youtube_dl/FileDownloader.py +++ b/youtube_dl/FileDownloader.py @@ -351,6 +351,7 @@ class FileDownloader(object): """Process a single dictionary returned by an InfoExtractor.""" info_dict['stitle'] = sanitize_filename(info_dict['title'], self.params.get('restrictfilenames')) + info_dict['atitle'] = info_dict['stitle'].encode('ascii', 'ignore') reason = self._match_entry(info_dict) if reason is not None: