diff options
Diffstat (limited to 'src/github')
-rw-r--r-- | src/github/daneren2005/dsub/service/parser/AbstractParser.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/service/parser/AbstractParser.java b/src/github/daneren2005/dsub/service/parser/AbstractParser.java index 9db40dad..7d43728a 100644 --- a/src/github/daneren2005/dsub/service/parser/AbstractParser.java +++ b/src/github/daneren2005/dsub/service/parser/AbstractParser.java @@ -127,7 +127,13 @@ public abstract class AbstractParser { rootElementFound = true; String version = get("version"); if (version != null) { - Util.setServerRestVersion(context, new Version(version)); + ServerInfo server = new Server(); + server.setRestVersion(new Version(version)); + + if("madsonic".equals(get("type"))) { + server.setRestType(ServerInfo.TYPE_MADSONIC); + } + server.saveServerInfo(context); } } return name; @@ -138,4 +144,4 @@ public abstract class AbstractParser { throw new Exception(context.getResources().getString(R.string.background_task_parse_error)); } } -}
\ No newline at end of file +} |