aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2016-06-16 07:04:31 -0700
committerScott Jackson <daneren2005@gmail.com>2016-06-16 07:04:31 -0700
commit8c29aa1f88041e4d90edecddd8dbb72254bfa79d (patch)
tree58535fca16ae0f4c7eb18960cac81e51e836f9cb /app/src/main/java
parent9bfe3e3950b43485b4557e54aae622d7e57faa26 (diff)
downloaddsub-8c29aa1f88041e4d90edecddd8dbb72254bfa79d.tar.gz
dsub-8c29aa1f88041e4d90edecddd8dbb72254bfa79d.tar.bz2
dsub-8c29aa1f88041e4d90edecddd8dbb72254bfa79d.zip
Madsonic 6 uses getSimilarSongs now
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/service/RESTMusicService.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/service/RESTMusicService.java b/app/src/main/java/github/daneren2005/dsub/service/RESTMusicService.java
index edc52c22..1f9e5494 100644
--- a/app/src/main/java/github/daneren2005/dsub/service/RESTMusicService.java
+++ b/app/src/main/java/github/daneren2005/dsub/service/RESTMusicService.java
@@ -696,7 +696,13 @@ public class RESTMusicService implements MusicService {
int instance = getInstance(context);
String method;
- if(ServerInfo.isMadsonic(context, instance)) {
+ if(ServerInfo.isMadsonic6(context, instance)) {
+ if (Util.isTagBrowsing(context, instance)) {
+ method = "getSimilarSongsID3";
+ } else {
+ method = "getSimilarSongs";
+ }
+ } else if(ServerInfo.isMadsonic(context, instance)) {
method = "getPandoraSongs";
} else {
if (Util.isTagBrowsing(context, instance)) {