aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005/dsub/service/RESTMusicService.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/github/daneren2005/dsub/service/RESTMusicService.java')
-rw-r--r--src/github/daneren2005/dsub/service/RESTMusicService.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/RESTMusicService.java b/src/github/daneren2005/dsub/service/RESTMusicService.java
index 036cb0ca..2f714d91 100644
--- a/src/github/daneren2005/dsub/service/RESTMusicService.java
+++ b/src/github/daneren2005/dsub/service/RESTMusicService.java
@@ -586,7 +586,18 @@ public class RESTMusicService implements MusicService {
values.add(size);
int instance = getInstance(context);
- Reader reader = getReader(context, progressListener, Util.isTagBrowsing(context, instance) ? "getSimilarSongs2" : "getSimilarSongs", null, names, values);
+ String method;
+ if(ServerInfo.isMadsonic(context, instance)) {
+ method = "getPandoraSongs";
+ } else {
+ if (Util.isTagBrowsing(context, instance)) {
+ method = "getSimilarSongs2";
+ } else {
+ method = "getSimilarSongs";
+ }
+ }
+
+ Reader reader = getReader(context, progressListener, method, null, names, values);
try {
return new RandomSongsParser(context, instance).parse(reader, progressListener);
} finally {