INNER CODE UNIT · Python

_get_poster_bg_paths

Casvt/Plex-scripts · library_management/poster_exporter_importer.py:330

def _get_poster_bg_paths(
    media: Dict[str, Any],
    poster_name: str,
    background_name: str
) -> Tuple[Union[str, None], Union[str, None]]:
    """Generate name of poster/background file for media.

    Args:
        media (Dict[str, Any]): The media to generate for.
        poster_name (str): The name of the default poster file.
        background_name (str): The name of the default background file.

    Returns:
        Tuple[Union[str, None], Union[str, None]]: Path to the supposed poster
        file and path to the supposed background file.
    """
    if media["type"] == "movie":
        folder = dirname(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…