fix(calibre-plugin): ensure size is correctly parsed as a number in book info in search (#14881)

This commit is contained in:
Camille HBP authored and GitHub committed 2026-03-08 12:34:10 +01:00
1 parent a47ecfcdc2
commit 2cef4378d2
1 file changed
+2 -2
+2 -2
View File
@@ -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