summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c15
-rw-r--r--src/pianobar.14
2 files changed, 18 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index f6dde4e..ad0049f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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 */
diff --git a/src/pianobar.1 b/src/pianobar.1
index 6201d8c..af9751a 100644
--- a/src/pianobar.1
+++ b/src/pianobar.1
@@ -59,6 +59,10 @@ Rename currently played station.
.B s
Play another station.
+.TP
+.B t
+Ban song for one month.
+
.SH FILES
.I $XDG_CONFIG_HOME/pianobar/config
or