From edc4d5b3b529044ab148d07764258f489f65c7bd Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Fri, 29 May 2026 22:57:00 -0400 Subject: [PATCH] Fix crash: use string.sub instead of non-existent startswith --- main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.lua b/main.lua index 3eed834..fe4b313 100644 --- a/main.lua +++ b/main.lua @@ -596,7 +596,7 @@ function Bookhoard:setupOPDS() if server.url and ( server.url == opds_url or server.url == opds_base_url - or util.startswith(server.url, opds_base_url .. "?") + or server.url:sub(1, #opds_base_url + 1) == opds_base_url .. "?" ) then servers[i] = { title = "Bookhoard",