Content server: Fix an error when editing a book's metadata to change both the cover and another field. Fixes #2117412 [Error when editing Cover and adding book info on web interface tool in safari and chrome](https://bugs.launchpad.net/calibre/+bug/2117412)

This commit is contained in:
Kovid Goyal 2025-08-20 19:19:04 +05:30
parent 5284fb6fb1
commit 4152fda2a2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -969,7 +969,7 @@ def render_metadata(mi, table, container_id, book_id): # {{{
if changes.cover is '--remove--':
img.removeAttribute('src')
changes.cover = None
else:
elif jstype(changes.cover) is not 'string':
r = FileReader()
r.onload = def(evt):
img.src = evt.target.result