def playlist(netease, name, id):
    """Download a playlist's songs by id."""
    if name:
        netease.download_playlist_by_search(name)

    if id:
        netease.download_playlist_by_id(id, 'playlist'+str(id))