Optionalinitpath: stringOptionalparent: PlexObjectOptionalitemClass: CollectionItemClass<CollectionVideoType>OptionalartCollection sort (0 release date, 1 alphabetical, 2 custom).
OptionalcontentSmart collection content URI.
Plex relative url of this metadata item.
OptionallibraryOptionallibraryOptionallibraryOptionalmaxOptionalminOptional ReadonlyparentWeakRef to the parent object that this object is built from.
OptionalratingOptionalratingNumber of ratings contributing to the collection rating.
OptionalratingReadonlyserverOptionaltitleOptionaltypeOptionalultraOptionaluserOptionalyearStaticTAGxml element tag
StaticTYPExml element type
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.
Path relative to the Plex server data directory, using server-independent separators.
Add a collection(s).
Add a genre(s).
Add items to the collection.
Items to add to the collection.
Add a label(s).
Tell Plex Media Server to performs analysis on it this item to gather information. Analysis includes:
Create a PlayQueue that plays every item in this collection.
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.
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.
Ordered query parameters defining this smart collection or playlist.
Choose whose watched state is used when evaluating a smart collection.
Use match result to update show metadata.
Match 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 a list of all items in the collection.
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
Move an item to a new position in the collection.
Item to move.
Optionalafter: CollectionVideoType
Item to place it after. If not provided, moves to the beginning.
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.
Remove a collection(s).
Remove a genre(s).
Remove items from the collection.
Items to remove from the collection.
Remove a label(s).
Update the collection sort order.
Sort order: 'release' (0), 'alpha' (1), 'custom' (2).
Unmatches metadata match from object.
Replace the validated search behind a smart collection.
StaticcreateCreate a new regular (non-smart) collection.
The PlexServer instance.
Title of the new collection.
Create a new regular (non-smart) collection.
The PlexServer instance.
Title of the new collection.
The library section to create the collection in.
Items to add to the collection. They must share a Plex type.
Collection display mode (-1 library default, 0 hide, 1 hide items, 2 show items).