From c3cdc31f0d3b2fd3313cba5044e1207adba81048 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Wed, 2 Jul 2008 21:08:25 +0200 Subject: client: Show real station when playing quickmix song --- src/main.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/main.c') 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); -- cgit v1.2.3