Add 'Update Plex Libraries' tray menu option - #101
Open
beni-ma-ru wants to merge 1 commit into
Open
Conversation
Adds a new UpdateAllLibraries operation to the WCF service contract. The service requests http://localhost:32400/library/sections/all/refresh (with the X-Plex-Token from the registry when available) so the request always originates from the machine hosting plex, meaning it also works when the tray app is connected to a remote service. The tray context menu shows the new option while plex is running and confirms the request with a balloon tip.
beni-ma-ru
force-pushed
the
feature/update-plex-libraries
branch
from
July 17, 2026 23:16
240be54 to
440a0a0
Compare
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.
What
Adds an Update Plex Libraries option to the tray icon context menu (shown while Plex is running, below "Restart Plex"). Clicking it asks Plex to scan/update all libraries — the same action as "Update Libraries" in the web UI, and a feature people often miss from running Plex as a regular user app.
How
UpdateAllLibraries()operation on theITrayInteractionWCF contract.http://localhost:32400/library/sections/all/refresh, appending theX-Plex-Tokenread from the registry via the existingPlexRegistryHelperwhen available. Doing it service-side means the request always originates from the machine hosting Plex, so it also works when the tray app is connected to a remote service instance.Start()/Stop()) so the tray's short WCF send timeout isn't at risk; the outcome is written to the service log.Testing
Tested on Windows 11 against a live Plex Media Server 1.43.2 installation running under PmsService:
UpdateAllLibraries()over the WCF channel and confirmed the service log showsUpdate of all libraries requested, plex responded: OK, with the library scan visible in the Plex dashboard.