From 1cf191137dceddb182d5a7914845fb1a9502e535 Mon Sep 17 00:00:00 2001 From: John Schember Date: Mon, 4 Jul 2011 13:39:51 -0400 Subject: [PATCH] Store: clean filenames of downloaded books. --- src/calibre/gui2/store/search/search.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/gui2/store/search/search.py b/src/calibre/gui2/store/search/search.py index f6fa423e23..9e78f75b4a 100644 --- a/src/calibre/gui2/store/search/search.py +++ b/src/calibre/gui2/store/search/search.py @@ -22,6 +22,7 @@ from calibre.gui2.store.search.adv_search_builder import AdvSearchBuilderDialog from calibre.gui2.store.search.download_thread import SearchThreadPool, \ CacheUpdateThreadPool from calibre.gui2.store.search.search_ui import Ui_Dialog +from calibre.utils.filenames import ascii_filename class SearchDialog(QDialog, Ui_Dialog): @@ -350,6 +351,7 @@ class SearchDialog(QDialog, Ui_Dialog): if d.exec_() == d.Accepted: ext = d.format() fname = result.title + '.' + ext.lower() + fname = ascii_filename(fname) self.gui.download_ebook(result.downloads[ext], filename=fname) def open_store(self, result):