summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@gmail.com>2008-07-02 21:08:25 +0200
committerLars-Dominik Braun <PromyLOPh@gmail.com>2008-07-02 21:08:25 +0200
commitc3cdc31f0d3b2fd3313cba5044e1207adba81048 (patch)
treeabb478451598fd038bfd0e8a0ada849cd4c46765 /src/main.c
parenta711635a5a031107da3ecc0b0e1c939277e34572 (diff)
downloadpianobar-windows-c3cdc31f0d3b2fd3313cba5044e1207adba81048.tar.gz
pianobar-windows-c3cdc31f0d3b2fd3313cba5044e1207adba81048.tar.bz2
pianobar-windows-c3cdc31f0d3b2fd3313cba5044e1207adba81048.zip
client: Show real station when playing quickmix song
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 744c731..4597e91 100644
--- a/src/main.c
+++ b/src/main.c
@@ -336,9 +336,15 @@ int main (int argc, char **argv) {
}
}
if (curSong != NULL) {
- printf ("\"%s\" by \"%s\"%s\n", curSong->title,
+ PianoStation_t *realStation =
+ PianoFindStationById (ph.stations,
+ curSong->stationId);
+ printf ("\"%s\" by \"%s\"%s%s%s\n", curSong->title,
curSong->artist, (curSong->rating ==
- PIANO_RATE_LOVE) ? " (Loved)" : "");
+ PIANO_RATE_LOVE) ? " (Loved)" : "",
+ curStation->isQuickMix ? " @ ": "",
+ curStation->isQuickMix ? realStation->name :
+ "");
/* setup artist and song name for scrobbling (curSong
* may be NULL later) */
WardrobeSongInit (&scrobbleSong);