mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-04 00:15:09 +01:00
Fix #788
This commit is contained in:
parent
5aa463b5e0
commit
589fa1ef13
1 changed files with 1 additions and 1 deletions
|
|
@ -1422,7 +1422,7 @@ def export_to_dir(self, dir, indices, byauthor=False, single_dir=False,
|
|||
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…
Reference in a new issue