From 78d2e0f61750e0a5748c2f633184a5c33c4f28fb Mon Sep 17 00:00:00 2001 From: Volterxien Date: Sun, 8 Jun 2025 20:02:04 -0400 Subject: [PATCH 1/2] fixed log message --- plugins/opds.koplugin/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/opds.koplugin/main.lua b/plugins/opds.koplugin/main.lua index 8d50e749e..37716d8c1 100644 --- a/plugins/opds.koplugin/main.lua +++ b/plugins/opds.koplugin/main.lua @@ -118,7 +118,7 @@ function OPDS:checkSyncDownload() if item.sync then local lastDownload = OPDSBrowser:syncDownload(item) if lastDownload then - logger.dbg("Updating opds last download for server" .. item.title) + logger.dbg("Updating opds last download for server " .. item.title) self:appendFieldToCatalog(item, "lastDownload", lastDownload) else end From 62faccf995e875f12006579c8902400001c253ce Mon Sep 17 00:00:00 2001 From: Volterxien Date: Sun, 8 Jun 2025 20:08:16 -0400 Subject: [PATCH 2/2] cleaning up --- plugins/opds.koplugin/opdsbrowser.lua | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/plugins/opds.koplugin/opdsbrowser.lua b/plugins/opds.koplugin/opdsbrowser.lua index b66c4db6f..051e75385 100644 --- a/plugins/opds.koplugin/opdsbrowser.lua +++ b/plugins/opds.koplugin/opdsbrowser.lua @@ -350,7 +350,7 @@ function OPDSBrowser:genItemTableFromURL(item_url) }) catalog = nil end - return self:genItemTableFromCatalog(catalog, item_url, true) + return self:genItemTableFromCatalog(catalog, item_url) end function OPDSBrowser:genItemTableFromCatalog(catalog, item_url) @@ -822,7 +822,6 @@ function OPDSBrowser:checkDownloadFile(local_path, remote_url, username, passwor end function OPDSBrowser:downloadFile(local_path, remote_url, username, password, caller_callback) - logger.dbg("Downloading file", local_path, "from", remote_url) local code, headers, status local parsed = url.parse(remote_url) @@ -1152,19 +1151,6 @@ function OPDSBrowser:downloadDownloadList() end function OPDSBrowser:syncDownload(server) - local function dump(o) - if type(o) == 'table' then - local s = '{ ' - for k,v in pairs(o) do - if type(k) ~= 'number' then k = '"'..k..'"' end - s = s .. '['..k..'] = ' .. dump(v) .. ',' - end - return s .. '} ' - else - return tostring(o) - end - end - local table local newLastDownload = nil table = self:getSyncDownloadList(server) @@ -1318,5 +1304,4 @@ function OPDSBrowser:getSyncDownloadList(server) return item_table end - return OPDSBrowser