diff options
author | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-06-10 12:21:00 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-06-10 12:21:00 +0200 |
commit | f990468cc7f40e5e890d8904e8edaa531d5dfefb (patch) | |
tree | 501a467e223414ebc60f4eec032fb586bb88b88c /src/main.c | |
parent | 305a4ba4885038f05444b9a7e8664c6ff67b66e2 (diff) | |
download | pianobar-f990468cc7f40e5e890d8904e8edaa531d5dfefb.tar.gz pianobar-f990468cc7f40e5e890d8904e8edaa531d5dfefb.tar.bz2 pianobar-f990468cc7f40e5e890d8904e8edaa531d5dfefb.zip |
Do not love tracks twice.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -262,7 +262,8 @@ int main (int argc, char **argv) { while (!doQuit) { PianoSong_t *lastSong = NULL; pthread_t playerThread; - printf ("%s by %s\n", curSong->title, curSong->artist); + printf ("\"%s\" by \"%s\"%s\n", curSong->title, curSong->artist, + (curSong->rating == PIANO_RATE_LOVE) ? " (Loved)" : ""); memset (&player, 0, sizeof (player)); player.url = strdup (curSong->audioUrl); @@ -294,6 +295,10 @@ int main (int argc, char **argv) { break; case 'l': + if (curSong->rating == PIANO_RATE_LOVE) { + printf ("Already loved. No need to do this twice.\n"); + break; + } if (PianoRateTrack (&ph, curStation, curSong, PIANO_RATE_LOVE) == PIANO_RET_OK) { printf ("Loved.\n"); |