Skip to main content

Module id

Module id 

Source
Expand description

Identifiers. On the wire each one is a namespaced string, for example plex:movie:12345.

Clients treat them as opaque: they compare them and send them back, and never take them apart. The namespace is part of the ID so that native: IDs (and, with federation, IDs from another server) can be added without a format change. Only the server reads the parts, through the accessors.

A paired server’s item is in Namespace::Federated: its key is the origin’s server id, then the id the origin knows it by without the kind, which the federated id carries already (fed:movie:mzxw6ytbojtg633c:plex:12). The origin is the server id, not its endpoint key, so a rotated key keeps every id.

Structs§

ArtworkId
A piece of artwork, fetched through the client protocol, never from Plex directly: <namespace>:<key>.
LibraryId
A library (a Plex library section today): <namespace>:<key>.
MediaId
A movie, show, season, episode, artist, album or track: <namespace>:<kind>:<key>.
PersonId
A person a search found, whose items can be listed: <namespace>:<key>.

Enums§

IdError
Why a string is not a valid identifier.
MediaKind
What kind of item a MediaId names.
Namespace
Which catalog an ID belongs to.