From 4152fda2a2788d53acb277e92c3be4f4b3141f06 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 20 Aug 2025 19:19:04 +0530 Subject: [PATCH] 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) --- src/pyj/book_list/edit_metadata.pyj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyj/book_list/edit_metadata.pyj b/src/pyj/book_list/edit_metadata.pyj index f18227bb60..b95e7bae65 100644 --- a/src/pyj/book_list/edit_metadata.pyj +++ b/src/pyj/book_list/edit_metadata.pyj @@ -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