diff options
Diffstat (limited to 'libpiano/xml.c')
-rw-r--r-- | libpiano/xml.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libpiano/xml.c b/libpiano/xml.c index 8881ac9..ba6e3c8 100644 --- a/libpiano/xml.c +++ b/libpiano/xml.c @@ -167,6 +167,12 @@ void PianoXmlParsePlaylistCb (char *key, xmlNode *value, void *data) { song->focusTraitId = strdup (valueStr); } else if (strcmp ("songTitle", key) == 0) { song->title = strdup (valueStr); + } else if (strcmp ("rating", key) == 0) { + if (xmlStrEqual (valueStr, "1")) { + song->rating = PIANO_RATE_LOVE; + } else { + song->rating = PIANO_RATE_NONE; + } } } |