aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2012-10-21 15:17:16 -0700
committerScott Jackson <daneren2005@gmail.com>2012-10-21 15:17:16 -0700
commit99c03da721551142eb205ed7adfca943e4666e92 (patch)
treeefc0f15763b171fb375d92280d329497e1c0ad8a /subsonic-android
parenta90c77104abca83bce2623170e1b050b76da2045 (diff)
downloaddsub-99c03da721551142eb205ed7adfca943e4666e92.tar.gz
dsub-99c03da721551142eb205ed7adfca943e4666e92.tar.bz2
dsub-99c03da721551142eb205ed7adfca943e4666e92.zip
Fixed addToPlaylist parameters to not error out
Diffstat (limited to 'subsonic-android')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java b/subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java
index acd3010e..e5fb059b 100644
--- a/subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java
+++ b/subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java
@@ -387,8 +387,10 @@ public class RESTMusicService implements MusicService {
@Override
public void addToPlaylist(String id, List<MusicDirectory.Entry> toAdd, Context context, ProgressListener progressListener) throws Exception {
checkServerVersion(context, "1.8", "Updating playlists is not supported.");
- List<String> names = Arrays.asList("playListID");
- List<Object> values = Arrays.<Object>asList(id);
+ List<String> names = new ArrayList<String>();
+ List<Object> values = new ArrayList<Object>();
+ names.add("playlistId");
+ values.add(id);
for(MusicDirectory.Entry song: toAdd) {
names.add("songIdToAdd");
values.add(song.getId());