From eb46d942e5ecf50ff9f85ee62ea2fa454aa228fa Mon Sep 17 00:00:00 2001
From: Lars-Dominik Braun <PromyLOPh@gmail.com>
Date: Mon, 7 Jul 2008 21:46:32 +0200
Subject: Use album title too (for scrobbling, e.g.)

---
 src/main.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'src')

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));
-- 
cgit v1.2.3