Exemplo n.º 1
0
def thumbs_down():
    if len(queue.song_ids) == 0:
        return statement(render_template("thumbs_no_song"))

    if api.is_indexing():
        return statement(render_template("indexing"))

    api.rate_song(queue.current_track(), '1')

    return next_song()
Exemplo n.º 2
0
def thumbs_down():
    if len(queue.song_ids) == 0:
        return statement("Please play a song to vote")

    if api.is_indexing():
        return statement("Please wait for your tracks to finish indexing")

    api.rate_song(queue.current_track(), '1')

    return statement("Downvoted")