diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-09-07 15:11:45 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-09-07 15:11:45 -0700 |
commit | a9fd765ce8fd4fb68737e482a3bd9238b3ce6f4b (patch) | |
tree | 110ded1ea988b7100143e309cfcc85e7c467a855 /app | |
parent | 120c7a3d53c79e8fecee1ac60f764479e492eacb (diff) | |
download | dsub-a9fd765ce8fd4fb68737e482a3bd9238b3ce6f4b.tar.gz dsub-a9fd765ce8fd4fb68737e482a3bd9238b3ce6f4b.tar.bz2 dsub-a9fd765ce8fd4fb68737e482a3bd9238b3ce6f4b.zip |
Expose new API methods which Madsonic supports as of 6.0
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/domain/ServerInfo.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/domain/ServerInfo.java b/app/src/main/java/github/daneren2005/dsub/domain/ServerInfo.java index 658d665d..a16ba179 100644 --- a/app/src/main/java/github/daneren2005/dsub/domain/ServerInfo.java +++ b/app/src/main/java/github/daneren2005/dsub/domain/ServerInfo.java @@ -192,8 +192,7 @@ public class ServerInfo implements Serializable { if(isStockSubsonic(context) && ServerInfo.checkServerVersion(context, "1.11")) { return true; } else if(isMadsonic(context)) { - // TODO: When madsonic adds support, figure out what REST version it is added on - return false; + return checkServerVersion(context, "2.0"); } else { return false; } @@ -204,11 +203,11 @@ public class ServerInfo implements Serializable { } public static boolean canSavePlayQueue(Context context) { - return ServerInfo.checkServerVersion(context, "1.12") && !ServerInfo.isMadsonic(context); + return ServerInfo.checkServerVersion(context, "1.12") && (!ServerInfo.isMadsonic(context) || checkServerVersion(context, "2.0")); } public static boolean canAlbumListPerFolder(Context context) { - return ServerInfo.checkServerVersion(context, "1.11") && !ServerInfo.isMadsonic(context) && !Util.isTagBrowsing(context); + return ServerInfo.checkServerVersion(context, "1.11") && (!ServerInfo.isMadsonic(context) || checkServerVersion(context, "2.0")) && !Util.isTagBrowsing(context); } public static boolean hasTopSongs(Context context) { return ServerInfo.isMadsonic(context) || ServerInfo.checkServerVersion(context, "1.13"); |