updated player
This commit is contained in:
@@ -40,7 +40,7 @@ class PlayerAuth:
|
||||
'auth_code': '',
|
||||
'player_id': None,
|
||||
'player_name': '',
|
||||
'group_id': None,
|
||||
'playlist_id': None,
|
||||
'orientation': 'Landscape',
|
||||
'authenticated': False
|
||||
}
|
||||
@@ -98,7 +98,7 @@ class PlayerAuth:
|
||||
'auth_code': data.get('auth_code'),
|
||||
'player_id': data.get('player_id'),
|
||||
'player_name': data.get('player_name'),
|
||||
'group_id': data.get('group_id'),
|
||||
'playlist_id': data.get('playlist_id'),
|
||||
'orientation': data.get('orientation', 'Landscape'),
|
||||
'authenticated': True,
|
||||
'server_url': server_url
|
||||
@@ -297,7 +297,7 @@ class PlayerAuth:
|
||||
'auth_code': '',
|
||||
'player_id': None,
|
||||
'player_name': '',
|
||||
'group_id': None,
|
||||
'playlist_id': None,
|
||||
'orientation': 'Landscape',
|
||||
'authenticated': False
|
||||
}
|
||||
@@ -335,7 +335,7 @@ if __name__ == '__main__':
|
||||
if valid:
|
||||
print(f"✅ Authentication valid")
|
||||
print(f" Player ID: {info['player_id']}")
|
||||
print(f" Group ID: {info.get('group_id', 'None')}")
|
||||
print(f" Playlist ID: {info.get('playlist_id', 'None')}")
|
||||
else:
|
||||
print("❌ Authentication expired, need to re-authenticate")
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user