aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/FileDownloader.py
diff options
context:
space:
mode:
authorFilippo Valsorda <filippo.valsorda@gmail.com>2012-05-09 14:47:28 +0200
committerFilippo Valsorda <filippo.valsorda@gmail.com>2012-05-09 14:47:28 +0200
commit2c288bda4235bed6927d88d9bf53ecaec18f7904 (patch)
treec5f4ca39348f1d54bcb4578b81fd44ddc87154f6 /youtube_dl/FileDownloader.py
parent0b8c922da91fb7238ea15434d6a4792da84015bf (diff)
downloadyoutube-dl-2c288bda4235bed6927d88d9bf53ecaec18f7904.tar.xz
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
Diffstat (limited to 'youtube_dl/FileDownloader.py')
-rw-r--r--youtube_dl/FileDownloader.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/FileDownloader.py b/youtube_dl/FileDownloader.py
index 2bc0b0d4e..14e872a98 100644
--- a/youtube_dl/FileDownloader.py
+++ b/youtube_dl/FileDownloader.py
@@ -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)