summaryrefslogtreecommitdiff
path: root/libpiano/src/xml.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@lavabit.com>2010-07-31 20:35:30 +0200
committerLars-Dominik Braun <PromyLOPh@lavabit.com>2010-08-01 12:12:52 +0200
commitc4cbe0dbec4cbc87e8d7b086c6335715b55cdbe8 (patch)
tree1b4d9c193e0b9e0fa1daf5742fc36637f9f52fee /libpiano/src/xml.c
parentb01e650546075f574068d89eb58101a88a8f5ed2 (diff)
downloadpianobar-c4cbe0dbec4cbc87e8d7b086c6335715b55cdbe8.tar.gz
pianobar-c4cbe0dbec4cbc87e8d7b086c6335715b55cdbe8.tar.bz2
pianobar-c4cbe0dbec4cbc87e8d7b086c6335715b55cdbe8.zip
Fix addFeedback
Pandora seems to have dropped focusTraitId and matchingSeed. New arguments to addFeedback are testStrategy and songType -- no idea what they are doing right now. Beware: Incompatible libpiano abi change!
Diffstat (limited to 'libpiano/src/xml.c')
-rw-r--r--libpiano/src/xml.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libpiano/src/xml.c b/libpiano/src/xml.c
index 78f7f21..cd06ae5 100644
--- a/libpiano/src/xml.c
+++ b/libpiano/src/xml.c
@@ -263,12 +263,8 @@ static void PianoXmlParsePlaylistCb (const char *key, const ezxml_t value,
song->artist = strdup (valueStr);
} else if (strcmp ("musicId", key) == 0) {
song->musicId = strdup (valueStr);
- } else if (strcmp ("matchingSeed", key) == 0) {
- song->matchingSeed = strdup (valueStr);
} else if (strcmp ("userSeed", key) == 0) {
song->userSeed = strdup (valueStr);
- } else if (strcmp ("focusTraitId", key) == 0) {
- song->focusTraitId = strdup (valueStr);
} else if (strcmp ("songTitle", key) == 0) {
song->title = strdup (valueStr);
} else if (strcmp ("identity", key) == 0) {
@@ -295,7 +291,11 @@ static void PianoXmlParsePlaylistCb (const char *key, const ezxml_t value,
}
} else if (strcmp ("artistMusicId", key) == 0) {
song->artistMusicId = strdup (valueStr);
- }
+ } else if (strcmp ("testStrategy", key) == 0) {
+ song->testStrategy = atoi (valueStr);
+ } else if (strcmp ("songType", key) == 0) {
+ song->songType = atoi (valueStr);
+ }
}
/* parses userinfos sent by pandora as login response