Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically retrieve PlexOnlineToken from PMS hidden settings #615

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JonnyWong16
Copy link

An update in Plex Media Server 1.20.3 changed the scope of the PLEXTOKEN environment variable token (token prefixed with local-). The local token is only allowed to access the local Plex Media Server API, and not any online Plex.tv API. See the Plex Employee response here. This prevents the Trakt plugin from retrieving Plex account information from Plex.tv.

A globally scoped token is still available by using the PlexOnlineToken in the the Advanced, Hidden Server Settings. This is the token registered for the Plex Media Server device (i.e. Plex Web > Account Settings > Authorized Devices > Server). Note that this token remains valid as long as the Plex Media server is claimed with a Plex.tv account and does not expire.

Changes have been made to the Trakt plugin to fallback to retrieving the PlexOnlineToken if the PLEXTOKEN environment variable token only has local scope. The PlexOnlineToken will be retrieved from the Windows Registry, MacOS plist file, or Linux Preferences.xml file depending on the operating system.

Fixes #611
Fixes #612

@burkasaurusrex
Copy link

Just wanted to thank you @JonnyWong16 for keeping this alive! Works like a charm

Copy link

@IlmLV IlmLV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed issue for me, thanks to author

@Skaronator
Copy link

Skaronator commented Mar 13, 2022

Tested on my machine, works perfectly - thanks!

(Linux, Docker)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants