(url: str)
return "unknown"
Returns the service the given url corresponds to.
Returns the service the given url corresponds to.
Returns the service the given url corresponds to .
def determine_url_type(url: str) -> str:
    """Returns the service the given url corresponds to."""
    if url.startswith("local_library/"):
        return "local"
    if url.startswith("https://www.youtube.com/"):
        return "youtube"
    if url.startswith("https://open.spotify.com/"):
        return "spotify"
    if url.startswith("https://soundcloud.com/"):
        return "soundcloud"
    if url.startswith("https://www.jamendo.com/"):
        return "jamendo"
    return "unknown"
def determine_url_type ( url : str ) -> str : if url . startswith ( "local_library/" ) : return "local" if url . startswith ( "https://www.youtube.com/" ) : return "youtube" if url . startswith ( "https://open.spotify.com/" ) : return "spotify" if url . startswith ( "https://soundcloud.com/" ) : return "soundcloud" if url . startswith ( "https://www.jamendo.com/" ) : return "jamendo" return "unknown"