mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Edit book: Fix cover not being updated from the current cover in the calibre library when using Edit Book. Note that you can turn off metadata updating via Preferences->calibre Integration in Edit Book. Fixes #1272730 [[enhancement] add selected cover to book](https://bugs.launchpad.net/calibre/+bug/1272730)
This commit is contained in:
parent
251caa3c7d
commit
c4b82a9db8
@ -132,7 +132,7 @@ class TweakEpubAction(InterfaceAction):
|
||||
if tprefs['update_metadata_from_calibre']:
|
||||
from calibre.ebooks.metadata.opf2 import pretty_print
|
||||
from calibre.ebooks.metadata.meta import set_metadata
|
||||
mi = db.new_api.get_metadata(book_id)
|
||||
mi = db.new_api.get_metadata(book_id, get_cover=True)
|
||||
with pretty_print, open(path, 'r+b') as f:
|
||||
set_metadata(f, mi, stream_type=fmt.lower())
|
||||
notify = '%d:%s:%s:%s' % (book_id, fmt, db.library_id, db.library_path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user