diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2017-09-30 17:06:41 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2017-09-30 17:06:41 +0200 |
commit | 41a00cc1e643d9e9a69991ead268777ecd17c154 (patch) | |
tree | 83df94f477f8ca5380ff10a2843d3cc9b92508e6 /src/libpiano/response.c | |
parent | d9cdc86e4b84be863099f8cadfc54a176aaf5c90 (diff) | |
download | pianobar-41a00cc1e643d9e9a69991ead268777ecd17c154.tar.gz pianobar-41a00cc1e643d9e9a69991ead268777ecd17c154.tar.bz2 pianobar-41a00cc1e643d9e9a69991ead268777ecd17c154.zip |
Add tired rating to song
Now we can show a tired icon in the history.
Closes #637.
Diffstat (limited to 'src/libpiano/response.c')
-rw-r--r-- | src/libpiano/response.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libpiano/response.c b/src/libpiano/response.c index 0e8c783..fd342ed 100644 --- a/src/libpiano/response.c +++ b/src/libpiano/response.c @@ -436,8 +436,13 @@ PianoReturn_t PianoResponse (PianoHandle_t *ph, PianoRequest_t *req) { break; } + case PIANO_REQUEST_ADD_TIRED_SONG: { + PianoSong_t * const song = req->data; + song->rating = PIANO_RATE_TIRED; + break; + } + case PIANO_REQUEST_ADD_SEED: - case PIANO_REQUEST_ADD_TIRED_SONG: case PIANO_REQUEST_SET_QUICKMIX: case PIANO_REQUEST_BOOKMARK_SONG: case PIANO_REQUEST_BOOKMARK_ARTIST: |