summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libpiano/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libpiano/main.c b/libpiano/main.c
index 17bef4b..4d186a9 100644
--- a/libpiano/main.c
+++ b/libpiano/main.c
@@ -304,6 +304,11 @@ PianoReturn_t PianoRateTrack (PianoHandle_t *ph, PianoStation_t *station,
(rating == PIANO_RATE_LOVE) ? "true" : "false");
PianoHttpPost (ph->curlHandle, url, requestStr, &retStr);
ret = PianoXmlParseSimple (retStr);
+
+ if (ret == PIANO_RET_OK) {
+ song->rating = rating;
+ }
+
free (requestStr);
free (retStr);