This commit is contained in:
2024-02-17 23:28:02 +01:00
parent f446953934
commit 74915249af
6 changed files with 76 additions and 35 deletions

View File

@@ -207,9 +207,11 @@ function authenticateJellyfin(){
// Extracting ServerId and AccessToken
var serverId = responseJson.ServerId;
var accessToken = responseJson.AccessToken;
var userID = responseJson.SessionInfo.UserId;
// Storing ServerId and AccessToken in atv storage
atv.localStorage['jellyfin_serverid'] = serverId;
atv.localStorage['jellyfin_authtoken'] = accessToken;
atv.localStorage['jellyfin_user_id'] = userID;
atv.localStorage['jellyfin_loggedin'] = '1';
showAuthSuccessScreen();
} else {