Document the Plexamp URL format - #4
Open
epheterson wants to merge 2 commits into
Open
Conversation
The README explains how to write a tag but not what ends up on it, so building a link from Plex ids means reverse engineering it. This writes the format down: playback is a player command that needs a play queue, browsing is a different shape that takes the global id, and the dead ends are listed so nobody repeats them.
A second link in one session opens Plexamp without moving it; relaunching and tapping again always lands correctly. Says that rather than the vaguer 'sometimes it misses', since it is reproducible and worth designing around.
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.
The README covers writing a tag but not what ends up on it, so building a link from Plex ids means working it out from scratch. This writes the format down.
Playback is not a link to an item, it is a player command, and it needs a play queue: given a
keyalone Plexamp answers "can't start playback, try again". That is also why the URL does not fit an NTAG213, since it carries a queue id, a machine identifier and an address.Browsing is a different shape and takes the global
plex://<kind>/<id>guid with no server named, which is why a ratingKey on a browse URL silently opens the wrong item.Adds
PLEXAMP-URLS.md: both shapes, albums, tracks, artists and playlists, the dead ends, and what is not verified. The host swap tolocalhost:32500inmain.pyis what made it solvable, since it shows the path is a Plexamp API path rather than a Plex Media Server one.