serverinfo is a string not an object

This commit is contained in:
sevenrats 2023-09-10 14:53:06 -04:00
parent 0f41e6506e
commit f29cddfdc1

View File

@ -441,7 +441,7 @@ end sub
' accepts the raw json string of /system/info/public and returns
' a boolean indicating if ProductName is "Jellyfin Server"
function isJellyfinServer(si as object) as boolean
function isJellyfinServer(si as string) as boolean
d = ParseJson(si)
if isValid(d) and isValid(d.ProductName)
return d.ProductName = "Jellyfin Server"