From 2cef4378d2eef70dd21d78bfb75b67ea1f8efd5f Mon Sep 17 00:00:00 2001 From: Camille HBP <11173924+CamilleHbp@users.noreply.github.com> Date: Sun, 8 Mar 2026 12:34:10 +0100 Subject: [PATCH] fix(calibre-plugin): ensure size is correctly parsed as a number in book info in search (#14881) --- plugins/calibre.koplugin/search.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/calibre.koplugin/search.lua b/plugins/calibre.koplugin/search.lua index 57e5087a4..6216c0788 100644 --- a/plugins/calibre.koplugin/search.lua +++ b/plugins/calibre.koplugin/search.lua @@ -141,10 +141,10 @@ local function getBookInfo(book) end return id end - -- all entries can be empty, except size, which is always filled by calibre. + -- All entries can be empty. local title = _("Title:") .. " " .. (book.title or "-") local authors = _("Author(s):") .. " " .. (getEntries(book.authors) or "-") - local size = _("Size:") .. " " .. util.getFriendlySize(book.size) or _("Unknown") + local size = _("Size:") .. " " .. (util.getFriendlySize(book.size) or _("Unknown")) local tags = getEntries(book.tags) if tags then tags = _("Tags:") .. " " .. tags