def _is_audio_link(link):
    """Checks if a given link is an audio file"""
    if "type" in link and link["type"][:5] == "audio":
        return True
    if link["href"].endswith(".mp3"):
        return True
    return False