aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-07-23 09:25:31 -0700
committerScott Jackson <daneren2005@gmail.com>2014-07-23 09:25:31 -0700
commitd1c4e003dde80b99e554e25448bd63239e30a5b2 (patch)
tree069dc6e49731fc2f52eee938665768686420efd3
parentf1e4bea087cad17dbce57a2ef8883e428020b12d (diff)
downloaddsub-d1c4e003dde80b99e554e25448bd63239e30a5b2.tar.gz
dsub-d1c4e003dde80b99e554e25448bd63239e30a5b2.tar.bz2
dsub-d1c4e003dde80b99e554e25448bd63239e30a5b2.zip
Work around for getBoolean never returning nulls
Fix for Last.FM showing for stock Subsonic users
-rw-r--r--src/github/daneren2005/dsub/service/parser/UserParser.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/service/parser/UserParser.java b/src/github/daneren2005/dsub/service/parser/UserParser.java
index 931bc4a5..c8b56080 100644
--- a/src/github/daneren2005/dsub/service/parser/UserParser.java
+++ b/src/github/daneren2005/dsub/service/parser/UserParser.java
@@ -65,9 +65,9 @@ public class UserParser extends AbstractParser {
}
private void parseSetting(User user, String name) {
- Boolean value = getBoolean(name);
+ String value = get(name);
if(value != null) {
- user.addSetting(name, getBoolean(name));
+ user.addSetting(name, "true".equals(value));
}
}
}