Fix crash: use string.sub instead of non-existent startswith
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user