summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@gmail.com>2008-07-07 21:46:32 +0200
committerLars-Dominik Braun <PromyLOPh@gmail.com>2008-07-07 21:46:32 +0200
commiteb46d942e5ecf50ff9f85ee62ea2fa454aa228fa (patch)
tree4e1d0fab3eff575274f6ec334680d51936675c7e /src
parente0b48b5fcc97b4979b32c79fe82c2fab5af89b86 (diff)
downloadpianobar-eb46d942e5ecf50ff9f85ee62ea2fa454aa228fa.tar.gz
pianobar-eb46d942e5ecf50ff9f85ee62ea2fa454aa228fa.tar.bz2
pianobar-eb46d942e5ecf50ff9f85ee62ea2fa454aa228fa.zip
Use album title too (for scrobbling, e.g.)
Diffstat (limited to 'src')
-rw-r--r--src/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 0a31a5e..49914ba 100644
--- a/src/main.c
+++ b/src/main.c
@@ -342,8 +342,9 @@ int main (int argc, char **argv) {
PianoStation_t *realStation =
PianoFindStationById (ph.stations,
curSong->stationId);
- printf ("\"%s\" by \"%s\"%s%s%s\n", curSong->title,
- curSong->artist, (curSong->rating ==
+ printf ("\"%s\" by \"%s\" on \"%s\"%s%s%s\n",
+ curSong->title, curSong->artist, curSong->album,
+ (curSong->rating ==
PIANO_RATE_LOVE) ? " (Loved)" : "",
curStation->isQuickMix ? " @ ": "",
curStation->isQuickMix ? realStation->name :
@@ -353,6 +354,7 @@ int main (int argc, char **argv) {
WardrobeSongInit (&scrobbleSong);
scrobbleSong.artist = strdup (curSong->artist);
scrobbleSong.title = strdup (curSong->title);
+ scrobbleSong.album = strdup (curSong->album);
scrobbleSong.started = time (NULL);
memset (&player, 0, sizeof (player));