INNER CODE UNIT · Python
_export
Casvt/Plex-scripts · library_management/poster_exporter_importer.py:441
def _export(
ssn: 'Session', media: Dict[str, Any],
process: List[str],
poster_name: str, background_name: str
) -> None:
"""Export the poster of the media to a file.
Args:
ssn (Session): The plex requests session to fetch with.
media (Dict[str, Any]): The media to export for.
process (List[str]): The image types to export.
poster_name (str): The default poster name.
background_name (str): The default background name.
"""
poster_path, bg_path = _get_poster_bg_paths(
media,
poster_name,
background_name