From eb46d942e5ecf50ff9f85ee62ea2fa454aa228fa Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 7 Jul 2008 21:46:32 +0200 Subject: Use album title too (for scrobbling, e.g.) --- libpiano/src/main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libpiano/src/main.c') diff --git a/libpiano/src/main.c b/libpiano/src/main.c index 7c9115b..1839c0c 100644 --- a/libpiano/src/main.c +++ b/libpiano/src/main.c @@ -142,6 +142,7 @@ void PianoDestroyPlaylist (PianoHandle_t *ph) { PianoFree (curSong->userSeed, 0); PianoFree (curSong->identity, 0); PianoFree (curSong->stationId, 0); + PianoFree (curSong->album, 0); lastSong = curSong; curSong = curSong->next; PianoFree (lastSong, sizeof (*lastSong)); @@ -201,6 +202,7 @@ PianoReturn_t PianoConnect (PianoHandle_t *ph, char *user, char *password) { requestStr = PianoEncryptString (requestStrPlain); snprintf (url, sizeof (url), PIANO_SECURE_RPC_URL "rid=%s" "&method=authenticateListener", ph->routeId); + if ((ret = PianoHttpPost (ph->curlHandle, url, requestStr, &retStr)) == PIANO_RET_OK) { ret = PianoXmlParseUserinfo (ph, retStr); -- cgit v1.2.3