mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Fix #788
This commit is contained in:
parent
5aa463b5e0
commit
589fa1ef13
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user