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