Skip to main content

Module model

Module model 

Source
Expand description

The media model clients browse: libraries, and the movies, shows and music in them.

playback is filled in by the server for the session’s own user; it never comes from Plex.

Structs§

Album
Artist
Artwork
A reference to artwork. Clients fetch the image through the client protocol with the id.
CastMember
Someone in a movie’s, show’s or episode’s credits: an actor, with the part they play, or a director.
Episode
Library
A library of one kind of media.
LibraryServer
The server a library of another server’s is shared from, so a client groups libraries by server, an offline one last and greyed.
Marker
A stretch of a movie or episode a viewer may want to skip.
Markers
An item’s markers, in order of start, without the kinds this build does not know: one from a newer server (MarkerKind::Unknown), which an app shows nothing for, is left out as the list is read. The same list as Vec<Marker> on the wire and to Swift and Kotlin.
Movie
PlaybackState
The session user’s progress on an item.
Progress
How far through an item the user is (PlaybackState::progress).
Season
Show
Track

Enums§

ArtworkKind
The role a piece of artwork plays.
Caption
The line under a card’s title, in parts.
Item
Any one item a catalog returns. On the wire it is the item’s own object with a kind field added, for example {"kind": "movie", "id": …}.
LibraryKind
What a library holds.
MarkerKind
What a marked stretch of an item is.
YearsAired
The years a show ran, as its card says them.