Skip to main content

Module playlists

Module playlists 

Source
Expand description

Playlists (feature spoolframe:playlists): ordered lists of movies, episodes and tracks a user makes, shares, pins and plays.

An entry is one place in a playlist, named by its EntryId: the same item may be in a playlist more than once, as two entries. Edits name entries, never items, so two editors moving the same film each move their own.

Structs§

Kinds
The kinds of item a playlist may hold, ticked when it is made. They can change later only to allow more.
PinNote
A pinned playlist that left the user’s Pinned: say so once, then DismissPinNotes.
PlaySettings
How a user plays a playlist, kept per user and playlist.
PlaylistEntry
One entry of a playlist, with its item as the catalog has it now and the user’s watch state on it.
PlaylistNext
The entry to play now (PlayPlaylist, NextInPlaylist), with its item, the user’s watch state on it (to resume where they were) and its intro and credits markers (to skip the credits).
PlaylistPage
One page of a playlist’s entries (GetPlaylist). Items the user may not see are neither listed nor counted.
PlaylistRef
A playlist holding an item, as the item’s details list it.
PlaylistShare
One user a playlist is shared with.
PlaylistSummary
A playlist as one user sees it, without its entries.
PlexImport
What importing the user’s Plex playlists made, or would make (ImportPlexPlaylists).
PlexImported
One Plex playlist imported.
PlexUnmapped
Something of a Plex playlist not imported.
ShareCandidate
Someone a playlist can be shared with (ListShareCandidates): an enabled account here, or a portable user granted access.
ShareCandidatePage
One page of whom a playlist can be shared with (ListShareCandidates), by display name.

Enums§

Builtin
A built-in playlist: every user has one of each, made by the server, never renamed, re-kinded, shared or deleted. Music only.
ItemKind
An item’s kind, as KindNotAllowed names the one refused.
Liked
A heart: whether an item is in the user’s Liked. A track’s is All or None; an album’s is All when every track it has now is liked, Some when some are, None when none are.
PinNoteReason
PlaylistEdit
One change to a playlist’s entries (EditPlaylist).
PlaylistOwnerKind
How a playlist stands to whoever asks: what a client lists its playlists apart by.
Repeat
What plays again.
UserKind
Whose account a user is (spoolframe:playlist-sharing).
Visibility
Who sees a playlist, as whoever manages it sets it.

Constants§

MAX_ART_BYTES
The largest cover a SetPlaylistArt takes, in bytes: past it, ImageTooLarge, and the bytes are not read.
MAX_ART_PIXELS
The most pixels a cover may have: past it, ImageTooLarge, from the picture’s header, before it is decoded.

Type Aliases§

EntryId
One place in a playlist. Never reused, in any playlist.