summaryrefslogtreecommitdiff
path: root/src/scrobbler2/scrobbler_xml_parsing.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/scrobbler2/scrobbler_xml_parsing.cc')
-rw-r--r--src/scrobbler2/scrobbler_xml_parsing.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scrobbler2/scrobbler_xml_parsing.cc b/src/scrobbler2/scrobbler_xml_parsing.cc
index f555079..6f2a6d3 100644
--- a/src/scrobbler2/scrobbler_xml_parsing.cc
+++ b/src/scrobbler2/scrobbler_xml_parsing.cc
@@ -208,9 +208,9 @@ gboolean read_authentication_test_result (String &error_code, String &error_deta
result = false;
} else {
- username = get_attribute_value("/lfm/recommendations[@user]", "user");
+ username = get_node_string("/lfm/user/name");
if (!username) {
- AUDDBG("last.fm not answering according to the API.\n");
+ AUDERR("last.fm not answering according to the API.\n");
result = false;
}
}