AbstractOptionalinitpath: stringOptionalparent: PlexObjectOptional_Optional_Unknown (com.plexapp.agents.imdb, etc)
l True if you allow syncing content from this section.
Wallpaper artwork used to respresent this section.
Composit image used to represent this section.
Datetime this library section was created.
Unknown
plex relative url
Language represented in this section (en, xn, etc).
Paths on disk where section content is stored.
Optional ReadonlyparentWeakRef to the parent object that this object is built from.
True if this section is currently being refreshed.
Internal scanner used to find media (Plex Movie Scanner, Plex Premium Music Scanner, etc.)
ReadonlySECTION_ReadonlyserverThumbnail image used to represent this section.
Title of this section.
Type of content section represents (movie, artist, photo, show).
Datetime this library section was last updated.
Unique id for this section (32258d7c-3e6c-4ac5-98ad-bad7a3b78c63)
StaticALLOWED_StaticALLOWED_StaticBOOLEAN_StaticTAGxml element tag
StaticTYPExml element type
Add new file paths to the library section.
One or more file paths to add.
Run an analysis on all of the items in this library section.
See :func:~plexapi.base.PlexPartialObject.analyze for more details.
Cancel update of this Library Section.
Returns the collection with the exact title.
Returns fields common to all provided items.
Returns items from this library section's Continue Watching hub.
Create a regular collection in this library section.
Create a regular or smart playlist scoped to this library section.
Reset this library section's advanced preference settings to their defaults.
Delete a library section.
Delete the preview thumbnails for items in this library. This cannot be undone. Recreating media preview files can take hours or even days.
Edit a library
object of settings to edit
Edit this library section's advanced preference settings.
If a section has items in the Trash, use this option to empty the Trash
Returns the list of first characters for items in this library section. This is the data used to populate the alphabet bar in the Plex UI.
Returns a list of available Folders for this library section.
Title of the item to return.
the media item with the specified title.
The data type for the field (tag, integer, string, boolean, date, subtitleLanguage, audioLanguage, resolution).
Returns the media item with the specified external IMDB, TMDB, or TVDB ID. Note: This search uses a PlexAPI operator so performance may be slow. All items from the entire Plex library need to be retrieved for each guid search. It is recommended to create your own lookup dictionary if you are searching for a lot of external guids.
The external guid of the item to return.
Examples: IMDB imdb://tt0944947, TMDB tmdb://1399, TVDB tvdb://121361.
Example:
.. code-block:: python
# This will retrieve all items in the entire library 3 times
result1 = library.getGuid('imdb://tt0944947')
result2 = library.getGuid('tmdb://1399')
result3 = library.getGuid('tvdb://121361')
# This will only retrieve all items in the library once to create a lookup dictionary
guidLookup = {guid.id: item for item in library.all() for guid in item.guids}
result1 = guidLookup['imdb://tt0944947']
result2 = guidLookup['tmdb://1399']
result3 = guidLookup['tvdb://121361']
Returns the Plex Web URL for the library.
The base URL before the fragment (#!).
Default is https://app.plex.tv/desktop.
Optionalbase?: stringThe base URL before the fragment (#!). Default is https://app.plex.tv/desktop.
Optionalkey?: stringA hub key.
Optionaltab?: stringThe library tab (recommended, library, collections, playlists, timeline).
Get watched history for this library section.
Returns section-scoped hub search results.
Returns True if this object is a child of the given class.
Returns a list of available FilteringField for a specified libtype. This is the list of options in the custom filter dropdown menu
Returns the available values for a custom filter field.
Optionallibtype: Optionallibtype: The library type to filter (movie, show, season, episode, artist, album, track, photoalbum, photo, collection).
The data type for the field (tag, integer, string, boolean, date, subtitleLanguage, audioLanguage, resolution).
Returns a list of available sorting fields for the specified libtype.
Optionallibtype: Lock a field for all items of a libtype in this library.
Returns the managed recommendation hubs for this library section.
Edit multiple items at once using Plex field keys.
Returns a list of items currently on deck (in progress) for this library section.
Returns a list of playlists from this library section.
Returns a list of recently added items for this library section.
OptionalmaxResults: numberMaximum number of results to return. Default 50.
Returns a list of recently added items for this library section.
Maximum number of results to return. Default 50.
Forces a download of fresh media information from the internet. This can take a long time. Any locked fields are not modified.
Reload the data for this object from this.key.
Optionalekey: stringRemove file paths from the library section.
One or more file paths to remove.
Reset managed hub customizations for this library section.
Search the library. The http requests will be batched in container_size. If you are only looking for the
first
Example: "studio=Comedy%20Central" or "year=1999" "title=Kung Fu" all work. Other items
such as actor=
Search using a number of different attributes
OptionalCls: Class<C>Returns the advanced preference settings for this library section.
Returns the current library section timeline status.
Returns the total duration of all items in the library in milliseconds, or null if unavailable.
Returns the total number of items in the library, excluding collections.
Returns the total storage size of all items in the library in bytes, or null if unavailable.
Returns the total number of items in the library. Queries the library without fetching any items to get the total count.
Optionaloptions: { includeCollections?: boolean; libtype?: string }OptionalincludeCollections?: booleanWhether to include collections in the count. Default true.
Optionallibtype?: stringFilter by a specific library type (movie, show, episode, etc.).
Unlock a field for all items of a libtype in this library.
Scan this section for new media.
Base class for a single library section.