diff options
author | owner <owner@DeeDee-Laptop> | 2012-10-20 18:49:41 -0700 |
---|---|---|
committer | owner <owner@DeeDee-Laptop> | 2012-10-20 18:49:41 -0700 |
commit | 52c1b1affb42ebe5d8b6830cfa17060e36b71c08 (patch) | |
tree | c0eae678a88b936872854cfca347961afe4ac2c3 /subsonic-android | |
parent | 571bbe97638206a5c76ae8754292c2e81802e8eb (diff) | |
download | dsub-52c1b1affb42ebe5d8b6830cfa17060e36b71c08.tar.gz dsub-52c1b1affb42ebe5d8b6830cfa17060e36b71c08.tar.bz2 dsub-52c1b1affb42ebe5d8b6830cfa17060e36b71c08.zip |
Moved server check to top
Diffstat (limited to 'subsonic-android')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java b/subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java index 0317a0a2..b95ae0f7 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java @@ -628,13 +628,13 @@ 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); for(MusicDirectory.Entry song: toAdd) { names.add("songIdToAdd"); values.add(song.getId()); } - checkServerVersion(context, "1.8", "Updating playlists is not supported."); Reader reader = getReader(context, progressListener, "updatePlaylist", null, names, values); try { new ErrorParser(context).parse(reader); |