diff options
author | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-06-25 14:49:58 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-06-25 14:50:54 +0200 |
commit | a39f7626758a7d26c1bc419b1eaa46cbfee5ecaa (patch) | |
tree | 39828b6b9b2d0c3f3859cbd7a3eaa022c1fa3660 /src/main.c | |
parent | af2ceec1e540bae28fdd3ec07158dcd137d3c9da (diff) | |
download | pianobar-a39f7626758a7d26c1bc419b1eaa46cbfee5ecaa.tar.gz pianobar-a39f7626758a7d26c1bc419b1eaa46cbfee5ecaa.tar.bz2 pianobar-a39f7626758a7d26c1bc419b1eaa46cbfee5ecaa.zip |
piano/client: Initial ban-for-a-month implementation
Use it when you're tired of hearing a single song again and again...
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -362,7 +362,8 @@ int main (int argc, char **argv) { "p\tpause/continue\n" "q\tquit\n" "r\trename current station\n" - "s\tchange station\n"); + "s\tchange station\n" + "t\ttired (ban song for 1 month)\n"); break; case 'a': @@ -494,6 +495,18 @@ int main (int argc, char **argv) { printf ("Changed station to %s\n", curStation->name); } break; + + case 't': + printf ("Putting song on shelf... "); + fflush (stdout); + if (PianoSongTired (&ph, curSong) == PIANO_RET_OK) { + printf ("Ok.\n"); + player.doQuit = 1; + } else { + printf ("Error.\n"); + } + break; + } /* end case */ } /* end poll */ |