mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2024-12-22 14:11:32 +00:00
Update API docs
This commit is contained in:
parent
5904f0593f
commit
2595e4ce92
@ -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
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user