serverinfo is a string not an object
This commit is contained in:
parent
0f41e6506e
commit
f29cddfdc1
|
@ -441,7 +441,7 @@ end sub
|
||||||
|
|
||||||
' accepts the raw json string of /system/info/public and returns
|
' accepts the raw json string of /system/info/public and returns
|
||||||
' a boolean indicating if ProductName is "Jellyfin Server"
|
' 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)
|
d = ParseJson(si)
|
||||||
if isValid(d) and isValid(d.ProductName)
|
if isValid(d) and isValid(d.ProductName)
|
||||||
return d.ProductName = "Jellyfin Server"
|
return d.ProductName = "Jellyfin Server"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user