INNER CODE UNIT · Python
poster_exporter_importer
Casvt/Plex-scripts · library_management/poster_exporter_importer.py:543
def poster_exporter_importer(
ssn: 'Session', library_filter: LibraryFilter,
action: ActionType, process: List[str],
no_episode_poster: bool = False, no_track_poster: bool = False,
poster_name: str = 'poster', background_name: str = 'background'
) -> List[int]:
"""Export plex posters to external files or import external files into plex.
Args:
ssn (Session): The plex requests session to fetch with.
library_filter (LibraryFilter): The filter to apply to the media.
action (ActionType): The type of action to do.
process (List[str]): What image types to process.
no_episode_poster (bool, optional): Don't process episodes.