From 99c03da721551142eb205ed7adfca943e4666e92 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Sun, 21 Oct 2012 15:17:16 -0700 Subject: Fixed addToPlaylist parameters to not error out --- .../src/github/daneren2005/dsub/service/RESTMusicService.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'subsonic-android') 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 toAdd, Context context, ProgressListener progressListener) throws Exception { checkServerVersion(context, "1.8", "Updating playlists is not supported."); - List names = Arrays.asList("playListID"); - List values = Arrays.asList(id); + List names = new ArrayList(); + List values = new ArrayList(); + names.add("playlistId"); + values.add(id); for(MusicDirectory.Entry song: toAdd) { names.add("songIdToAdd"); values.add(song.getId()); -- cgit v1.2.3