From 589fa1ef13879c975ed6048d4e5e27dc8a77d3fc Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 16 Jun 2008 23:17:18 -0700 Subject: [PATCH] Fix #788 --- src/calibre/library/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/library/database.py b/src/calibre/library/database.py index c357239fa5..dc4f4e31de 100644 --- a/src/calibre/library/database.py +++ b/src/calibre/library/database.py @@ -1422,7 +1422,7 @@ ALTER TABLE books ADD COLUMN isbn TEXT DEFAULT "" COLLATE NOCASE; mi = OPFCreator(base, self.get_metadata(idx, index_is_id=index_is_id)) cover = self.cover(idx, index_is_id=index_is_id) if cover is not None: - cname = name + '.jpg' + cname = sanitize_file_name(name) + '.jpg' cpath = os.path.join(base, cname) open(cpath, 'wb').write(cover) mi.cover = cname