Optional
addedOptional
artOptional
artOptional
audienceOptional
collectionsOptional
distanceSonic distance from a seed item, used in sonically similar results.
Optional
fieldsList of field objects.
Optional
formatsOptional
genresOptional
guidOptional
guidsOptional
imagesList of image objects.
Optional
indexPlex index number (often the track number for tracks).
plex relative url
Optional
labelsOptional
lastOptional
lastOptional
leafOptional
libraryOptional
libraryKey of the library section this item belongs to.
Optional
libraryTitle of the library section this item belongs to.
Optional
loudnessOptional
moodsList of mood objects.
Optional
musicPlex music analysis version (1 indicates sonic analysis complete).
Optional
originallyOptional
Readonly
parentWeakRef to the parent object that this object is built from.
Optional
parentArtist GUID
Optional
parentArtist Key
Optional
parentArtist Rating Key
Optional
parentArtist Theme
Optional
parentArtist Thumb
Optional
parentArtist Title
Optional
ratingOptional
ratingReadonly
serverOptional
studioOptional
stylesOptional
subformatsOptional
summaryOptional
thumbOptional
thumbOptional
titleOptional
titleTitle used for sorting (defaults to title).
Optional
typeOptional
updatedOptional
userUser rating (0.0-10.0).
Optional
viewCount of times the item was played.
Optional
viewedOptional
yearStatic
METADATA_Default metadata type for audio sync items.
Static
TAGxml element tag
Static
TYPExml element type
Indicates if the audio item has undergone sonic analysis.
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.
Hardcoded list type for filtering.
Returns the default title for a sync 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:
Return the album's Artist.
Delete a media element. This has to be enabled under settings > server > library in plex webui.
Edit an object.
Obj of settings to edit. Example: {'type': 1, 'id': movie.ratingKey, 'title.value': 'New Title', 'collection[0].tag.tag': 'Super', 'collection.locked': 0}
Use match result to update show metadata.
Optional
searchResult: SearchResultSearch result
True uses first match from matches, False allows user to provide the match
(str): Agent name to be used (imdb, thetvdb, themoviedb, etc.)
Optional
base: stringGet Play History for a media item.
Only return the specified number of results (optional).
Optional
mindate: DateMin datetime to return results from.
Returns True if this object is a child of the given class.
Optional
agent: stringAgent name to be used (imdb, thetvdb, themoviedb, etc.)
Optional
title: stringTitle of item to search for
Optional
year: stringYear of item to search in
Optional
language: stringLanguage of item to search in
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
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.
Optional
ekey: stringOptional
args: anyRemove a collection(s).
Remove a genre(s).
Remove a label(s).
Fetches a list of sonically similar audio items from the Plex server.
The returned items will be instances of the same class as the current item
(e.g., calling sonicallySimilar
on a Track
instance returns Track[]
).
Optional
limit: numberMaximum number of similar items to return. Server default is 50.
Optional
maxDistance: numberMaximum sonic distance (0.0 - 1.0) between items. Server default is 0.25.
Optional
options: Record<string, string | number>Optional additional filters to apply to the results.
A promise resolving to an array of sonically similar Audio items.
Returns a list of Track objects in the album.
Additional fetch options.
Unmatches metadata match from object.
Returns the full URL for a given part (like a media stream) relative to the item's key. Includes the authentication token.
The relative path or resource identifier.
The full URL string including the server address and token, or undefined if part is empty.
Represents a single Album.