From d1c4e003dde80b99e554e25448bd63239e30a5b2 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Wed, 23 Jul 2014 09:25:31 -0700 Subject: Work around for getBoolean never returning nulls Fix for Last.FM showing for stock Subsonic users --- src/github/daneren2005/dsub/service/parser/UserParser.java | 4 ++-- 1 file 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)); } } } -- cgit v1.2.3