def get_songs_from_playlist(player, playlist_name):
    """Returns a list of songs from the given playlist"""
    lists = player.get_sonos_playlists()
    for playlist in lists:
        if playlist.title == playlist_name:
            return player.music_library.browse(playlist)