src/bbc_meet_spotify/playlist_parsing.py
def parse_playlist_file(playlist_key: str, custom_playlist_name: str = None) -> Tuple[str, str]:
    """
    Parses playlist file, with optional custom playlist name override
    :param playlist_key:
    :param custom_playlist_name:
    :return:
    """
    playlist = toml.load(Path("./bbc_playlists.toml"))[playlist_key]
    playlist_suffix = custom_playlist_name or playlist["verbose_name"]
    return playlist["url"], playlist_suffix

    Parses playlist file, with optional custom playlist name override
    :param playlist_key:
    :param custom_playlist_name:
    :return:
    
Parses playlist file, with optional custom playlist name override
Parses playlist file with optional custom playlist name override
def parse_playlist_file(playlist_key: str, custom_playlist_name: str = None) -> Tuple[str, str]:
    playlist = toml.load(Path("./bbc_playlists.toml"))[playlist_key]
    playlist_suffix = custom_playlist_name or playlist["verbose_name"]
    return playlist["url"], playlist_suffix
def parse_playlist_file ( playlist_key : str , custom_playlist_name : str = None ) -> Tuple [ str , str ] : playlist = toml . load ( Path ( "./bbc_playlists.toml" ) ) [ playlist_key ] playlist_suffix = custom_playlist_name or playlist [ "verbose_name" ] return playlist [ "url" ] , playlist_suffix
Parses playlist file, with optional custom playlist name override
Parses playlist file with optional custom playlist name override
"""
    Parses playlist file, with optional custom playlist name override
    :param playlist_key:
    :param custom_playlist_name:
    :return:
    """
None
playlist_key
str
None
custom_playlist_name
str
None