diff options
Diffstat (limited to 'libpiano/main.c')
-rw-r--r-- | libpiano/main.c | 5 |
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); |