Functions | |
| PlexObject|list[PlexObject] | search_media (str media_type, LibrarySection library_section, bool allow_multiple=False, **kwargs) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| dictionary | LEGACY_PARAM_MAPPING |
| tuple | PREFERRED_LIBTYPE_ORDER |
Helper methods to search for Plex media.
| PlexObject | list[PlexObject] homeassistant.components.plex.media_search.search_media | ( | str | media_type, |
| LibrarySection | library_section, | ||
| bool | allow_multiple = False, |
||
| ** | kwargs | ||
| ) |
Search for specified Plex media in the provided library section. Returns a media item or a list of items if `allow_multiple` is set. Raises MediaNotFound if the search was unsuccessful.
Definition at line 38 of file media_search.py.
|
private |
Definition at line 35 of file media_search.py.
| dictionary homeassistant.components.plex.media_search.LEGACY_PARAM_MAPPING |
Definition at line 13 of file media_search.py.
| tuple homeassistant.components.plex.media_search.PREFERRED_LIBTYPE_ORDER |
Definition at line 25 of file media_search.py.