Optional
initpath: stringOptional
parent: PlexObjectOptional
_fieldOptional
_filterUnknown (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
Readonly
parentWeakRef 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.)
Readonly
serverThumbnail 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)
Readonly
VIDEO_Static
ALLOWED_Static
ALLOWED_Static
BOOLEAN_Static
TAGxml element tag
Static
TYPExml element type
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.
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
If a section has items in the Trash, use this option to empty the Trash
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.
Optional
base: stringThe base URL before the fragment (#!
).
Default is https://app.plex.tv/desktop.
Optional
tab: stringThe library tab (recommended, library, collections, playlists, timeline).
Optional
key: stringA hub key.
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
Optional
libtype: 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 playlists from this library section.
Returns a list of recently added episodes from this library section.
Max number of items 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.
Optional
ekey: stringSearch 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
Scan this section for new media.
Base class for a single library section.