Update API docs

This commit is contained in:
jellyfin-bot 2023-11-22 21:48:09 +00:00
parent 5904f0593f
commit 2595e4ce92
4 changed files with 4 additions and 11 deletions

View File

@ -55,12 +55,6 @@ function setPreference(key as string, value as string)
return set_user_setting("pref-" + key, value)
end function
sub setActive()
if m.global.session.user.settings["global.rememberme"]
set_setting("active_user", m.top.id)
end if
end sub
sub setServer(hostname as string)
m.top.server = hostname
end sub

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -14,9 +14,8 @@ function get_token(user as string, password as string)
userdata = CreateObject("roSGNode", "UserData")
userdata.json = json
userdata.callFunc("setActive")
userdata.callFunc("saveToRegistry")
return userdata
end function
@ -165,8 +164,8 @@ function AuthenticateViaQuickConnect(secret)
userdata.json = jsonResponse
session.user.Update("id", jsonResponse.User.Id)
session.user.Update("authToken", jsonResponse.AccessToken)
userdata.callFunc("setActive")
userdata.callFunc("saveToRegistry")
return true
end if