Optionalinitpath: stringOptionalparent: PlexObjectDatetime this item was added to the library.
OptionalartOptionalartOptionalaudienceAudience rating (usually from Rotten Tomatoes).
OptionalaudienceKey to audience rating image (rottentomatoes://image.rating.spilled).
OptionalaudioPreferred audio language for this show, when set.
OptionalautoDelete unwatched episodes preference, when set on this show.
OptionalautoDelete watched episodes preference, when set on this show.
OptionalbannerKey to banner artwork (/library/metadata/
Number of seasons, including specials.
OptionalcommonCommon Sense Media rating and advisory data, when returned by Plex.
OptionalcontentContent rating (PG-13; NR; TV-G).
OptionalcontentMinimum age for the content rating, when Plex knows it.
OptionaldurationDuration of show in milliseconds.
OptionaleditionEdition shared by a movie or inherited from a show's hierarchy.
OptionalenableCredits marker generation preference (-1 library default, 0 disabled, 1 enabled).
OptionalepisodeEpisode sort preference (-1 library default, 0 oldest first, 1 newest first).
OptionalflattenSeason display preference (-1 library default, 0 show, 1 hide).
List of genre objects.
OptionalgrandparentOptionalgrandparentPlex GUID (com.plexapp.agents.imdb://tt4302938?lang=en).
External GUID objects for this video item.
Image tags for this video item.
Plex index (?)
Plex relative url of this metadata item.
OptionallanguageLanguage override for metadata, when set on this item.
OptionallastDatetime the user last rated this item.
OptionallastDatetime item was last accessed.
Unknown.
OptionallibraryOptionallibraryLibrary section key (/library/sections/1).
OptionallibraryLibrary section title (Movies, TV Shows).
Hardcoded as 'video' (useful for search filters).
OptionalliveWhether the active session is live TV.
OptionalnetworkTV network that aired the show.
OptionaloriginallyDatetime show was released.
OptionaloriginalOriginal title, often the foreign title.
Optional ReadonlyparentWeakRef to the parent object that this object is built from.
OptionalparentBlurHash string for artwork image.
OptionalplayerClient currently playing this item.
Clients associated with this active playback.
OptionalplaylistPlaylist item ID, only populated for items loaded from a Playlist.
OptionalplayQueue-local item ID (only populated for PlayQueue items).
OptionalprocessingCurrent state while this item is being processed for an optimized-media group.
OptionalratingShow rating (7.9; 9.8; 8.1).
OptionalratingList of role objects.
Number of seasons. Falls back to childCount when Plex omits it.
ReadonlyserverOptionalsessionBandwidth allocation for the active playback, when one exists.
OptionalsessionServer-local key for an active playback session.
Bandwidth allocations associated with this active playback.
OptionalshowEpisode ordering for the show (ex: aired, dvd, absolute), when set.
OptionalslugURL slug used by Plex.
OptionalstudioStudio that created show (Di Bonaventura Pictures; 21 Laps Entertainment).
OptionalsubtitlePreferred subtitle language for this show, when set.
OptionalsubtitleSubtitle mode preference, when set on this show.
OptionalsummarySummary of the artist, track, or album.
OptionaltaglineShow tag line.
OptionalthemeKey to theme resource (/library/metadata/
OptionalthumbURL to thumbnail image.
OptionalthumbBlurHash string for thumbnail image.
OptionaltitleOptionaltitleTitle to use when sorting (defaults to title).
OptionaltranscodeActive transcode associated with this playback, when Plex includes it.
Transcodes associated with this active playback.
OptionaltypeOptionalultraOptionalupdatedDatetime this item was updated.
OptionaluseOriginal title preference (-1 library default, 0 disabled, 1 enabled).
OptionaluserAccount currently playing this item.
Usernames associated with this active playback.
OptionaluserUser rating (2.0; 8.0).
Count of times this item was accessed.
OptionalviewedDatetime item was last viewed (history).
Unknown.
OptionalyearStaticTAGxml element tag
StaticTYPExml element type
Alias of Show.roles
Typed poster, background, logo, and square-art management.
Retruns True if this is already a full object. A full object means all attributes were populated from the api path representing only this item. For example, the search result for a movie often only contain a portion of the attributes a full object (main url) for that movie would contain.
True if this show is fully watched.
Path relative to the Plex server data directory, using server-independent separators.
Return the first first thumbnail url starting on the most specific thumbnail for that item.
Add a collection(s).
Add a genre(s).
Add a label(s).
Tell Plex Media Server to performs analysis on it this item to gather information. Analysis includes:
Returns all audio streams from all parts.
Returns a new PlayQueue from this media item.
Options for creating the PlayQueue
New PlayQueue instance
Delete a media element. This has to be enabled under settings > server > library in plex webui.
Stream original media files; consume each body before advancing the iterator.
Start downloading an on-demand subtitle search result.
Edit an object.
Validate values against Plex's advertised preferences before submitting them.
Set the content rating (e.g. PG-13, R, TV-MA).
Edit several typed metadata fields in one request.
Set the originally available at date (release date).
Set the sort title.
Set the studio.
Set the summary.
Edit a server-defined tag, such as genre, collection, country, director, or mood.
Set the title.
Optionalquery: Record<string, string | number>Use match result to update show metadata.
Match options.
Returns a stream URL that can be used for playback.
Additional URL parameters for transcoding options.
Get Play History for a media item.
Filter and paging options.
Returns true if this object was built from a parent of the given class.
Whether a loaded field is locked against metadata refreshes.
Returns all MediaPart objects across all Media entries.
Mark video as unwatched.
Mark video as watched.
Match options.
Examples:
video.matches()
video.matches({ title: "something", year: "2020" })
video.matches({ title: "something" })
video.matches({ year: "2020" })
video.matches({ title: "something", year: "" })
video.matches({ title: "", year: "2020" })
video.matches({ title: "", year: "" })
The default behaviour in Plex Web = no params in plexapi
Both title and year specified by user
Year automatically filled in
Title automatically filled in
Explicitly searches for title with blank year
Explicitly searches for blank title with year
I don't know what the user is thinking... return the same result as 1
For 2 to 7, the agent and language is automatically filled in
Return the episode Plex currently considers on deck for this show.
Create an optimized version using a built-in preset or explicit custom profile.
Returns list of available Poster objects.
Set a personal rating from 0 to 10, or clear it with null.
Refreshing a Library or individual item causes the metadata for the item to be refreshed, even if it already has metadata. You can think of refreshing as "update metadata for the requested item even if it already has some". You should refresh a Library or individual item if:
load full data / reload the data for this object from this.key.
Optionalekey: stringOptionalargs: Record<string, number | boolean>Remove a collection(s).
Remove a genre(s).
Remove a label(s).
Remove an uploaded or downloaded external subtitle.
Search Plex's on-demand subtitle providers for this video.
Optionalquery: Record<string, string | number>Returns all subtitle streams from all parts.
Unmatches metadata match from object.
Return episodes that have not been viewed.
Set the watched progress for this item. Plex ignores progress of 60 seconds or less, use Playable.markUnplayed to clear progress instead.
Report playback progress for this item the way a player would. Duration defaults to the item's own duration.
Upload a poster from a URL or image bytes. Shorthand for artwork.upload().
Upload an external subtitle file for this video.
Returns all video streams from every media part.
Return episodes with at least one view.
Represents a single Show (including all seasons and episodes).