Repository navigation
plexupdate: Add interactive plex.tv authentication and general plugin rewrite - #6978
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6978 +/- ##
==========================================
+ Coverage 76.86% 76.92% +0.06%
==========================================
Files 163 163
Lines 21625 21724 +99
Branches 3343 3349 +6
==========================================
+ Hits 16621 16711 +90
- Misses 4189 4201 +12
+ Partials 815 812 -3
🚀 New features to boost your workflow:
|
semohr
force-pushed
the
plexupdate_refactor
branch
from
September 2, 2026 18:55
a492544 to
5d2cdea
Compare
snejus
requested changes
Sep 2, 2026
snejus
left a comment
Member
There was a problem hiding this comment.
Mostly looks good, just a couple of comments
semohr
force-pushed
the
plexupdate_refactor
branch
2 times, most recently
from
September 2, 2026 21:45
b402856 to
a5ada8f
Compare
semohr
force-pushed
the
plexupdate_refactor
branch
from
September 2, 2026 21:47
a5ada8f to
1149c1a
Compare
Rewrite the plugin around Plex' PIN authentication flow: running `beet plexupdate --auth` opens a browser window and stores the obtained token together with a generated client identifier in a token file (`plex_token.json`) next to the beets configuration. - add a PlexSession (based on TimeoutAndRetrySession) that handles token persistence, plex.tv PIN polling, and attaching the token to local server requests - look up the music library section through the JSON API instead of parsing XML - refresh the Plex library once, at the end of commands that changed the library; report missing sections and 401 responses clearly instead of failing silently - deprecate the manual `token` configuration option in favor of the interactive login
Cover the plex.tv PIN authentication flow, token persistence, and the library refresh requests with mocked HTTP responses.
Rewrite the plugin documentation in the current style with dedicated sections on authentication, usage, and configuration, and mark the manual `token` option as deprecated. Add a changelog entry for the new `beet plexupdate --auth` command.
semohr
force-pushed
the
plexupdate_refactor
branch
from
September 3, 2026 14:37
3f586b1 to
8859bb7
Compare
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rewrite the
plexupdateplugin around Plex's PIN authentication flow.beet plexupdate --authopens a browser, authenticates with Plex, and stores the token and generated client identifier inplex_token.jsonnext to the beets configuration.PlexSessionfor token persistence, PIN polling, and authenticated server requests.401responses.tokenoption in favor of interactive authentication.Motivation
plexupdatecould easily break after Plex deployments or instances were updated, and manually obtaining a token isn't particularly straightforward... This rewrite makes recovery simple: if authentication breaks, users can just run the documentedbeet plexupdate --authcommand.