I’m trying to pull the logged in account’s username, and the field I expected it to be returns something entirely difference…
The code:
account = MyPlexAccount('USERNAME', 'PASSWORD')
plex = account.resource('SERVERNAME').connect()
name = plex.myPlexUsername
ends up with name as the email address of the server owner, when I would expect it to be the same as 'USERNAME'. (Same issue if we log in via plex = PlexServer(os.getenv('PLEX_BASEURL'), os.getenv('PLEX_TOKEN'))
Shouldn’t myPlexUsername be the logged in username? Why not? And, if not a bug, how do I actually get the logged in username?