@staticmethod<EOL><INDENT>@cast_to_list(<NUM_LIT:0>)<EOL>def get_local_playlists(filepaths, exclude_patterns=None, max_depth=float('<STR_LIT>')):<DEDENT>
logger.info("<STR_LIT>")<EOL>included_playlists = []<EOL>excluded_playlists = []<EOL>supported_filepaths = get_supported_filepaths(filepaths, SUPPORTED_PLAYLIST_FORMATS, max_depth=max_depth)<EOL>included_playlists, excluded_playlists = exclude_filepaths(supported_filepaths, exclude_patterns=exclude_patterns)<EOL>logger.info("<STR_LIT>".format(len(excluded_playlists)))<EOL>logger.info("<STR_LIT>".format(len(included_playlists)))<EOL>return included_playlists, excluded_playlists<EOL>
Load playlists from local filepaths.

        Parameters:
                filepaths (list or str): Filepath(s) to search for music files.

                exclude_patterns (list or str): Pattern(s) to exclude.
                        Patterns are Python regex patterns.
                        Filepaths are excluded if they match any of the exclude patterns.

                max_depth (int): The depth in the directory tree to walk.
                        A depth of '0' limits the walk to the top directory.
                        Default: No limit.

        Returns:
                A list of local playlist filepaths matching criteria
                and a list of local playlist filepaths excluded using exclusion criteria.