mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix error when downloading only covers and reviewing downloaded metadata. Fixes #1176253 (Bulk Download Covers Only - 0.9.29)
This commit is contained in:
parent
f7a44c80f8
commit
654ce41161
@ -240,9 +240,10 @@ class EditMetadataAction(InterfaceAction):
|
||||
opf, cov = id_map[book_id]
|
||||
cfile = mi.cover
|
||||
mi.cover, mi.cover_data = None, (None, None)
|
||||
if opf is not None:
|
||||
with open(opf, 'wb') as f:
|
||||
f.write(metadata_to_opf(mi))
|
||||
if cfile:
|
||||
if cfile and cov:
|
||||
shutil.copyfile(cfile, cov)
|
||||
os.remove(cfile)
|
||||
nid_map[book_id] = id_map[book_id]
|
||||
|
Loading…
x
Reference in New Issue
Block a user