INNER CODE UNIT · Python

first_photo_album_cover

Casvt/Plex-scripts · library_management/first_photo_album_cover.py:93

def first_photo_album_cover(
    ssn: 'Session', library_name: List[str],
    exclude_name: List[str] = [], exclude_regex: List[str] = [],
    include_name: List[str] = [], include_regex: List[str] = []
) -> List[int]:
    """The first image in an album will be made the cover of the album.

    Args:
        ssn (Session): The plex requests session to fetch with.

        library_name (List[str]): Names of the libraries to apply to.

        exclude_name (List[str], optional): Album names to exclude.
            Defaults to [].

        exclude_regex (List[str], optional): Regexes that, if matching,
        will exclude the album.
            Defaults to [].

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…