reorganized the titles sanitizing: now title is the untouched title

and stitle is created in process_info() and is cross-filesystem sanitized by sanitize_filename();
closes #164
This commit is contained in:
Filippo Valsorda 2012-05-09 14:47:28 +02:00
parent 0b8c922da9
commit 2c288bda42
4 changed files with 17 additions and 63 deletions

View file

@ -344,6 +344,8 @@ class FileDownloader(object):
def process_info(self, info_dict):
"""Process a single dictionary returned by an InfoExtractor."""
info_dict['stitle'] = sanitize_filename(info_dict['title'])
reason = self._match_entry(info_dict)
if reason is not None:
self.to_screen(u'[download] ' + reason)