diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-07-02 22:55:00 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-07-02 22:55:00 -0700 |
commit | 0327e2f5ea0e65fb07cc509ecd9705a48a68ee49 (patch) | |
tree | 2e4105d59dd83535976af0d64b10f46099ad8604 /subsonic-android/src/github | |
parent | 5d4d0d4d6da34b810e59aa55f9fab0ad3445db9d (diff) | |
download | dsub-0327e2f5ea0e65fb07cc509ecd9705a48a68ee49.tar.gz dsub-0327e2f5ea0e65fb07cc509ecd9705a48a68ee49.tar.bz2 dsub-0327e2f5ea0e65fb07cc509ecd9705a48a68ee49.zip |
Added server version checks to new podcast methods
Diffstat (limited to 'subsonic-android/src/github')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java | 12 |
1 files changed, 11 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 2cd45335..900d0661 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java @@ -908,6 +908,8 @@ public class RESTMusicService implements MusicService { @Override public void refreshPodcasts(Context context, ProgressListener progressListener) throws Exception { + checkServerVersion(context, "1.9", "Refresh podcasts not supported."); + Reader reader = getReader(context, progressListener, "refreshPodcasts", null); try { new ErrorParser(context).parse(reader); @@ -918,6 +920,8 @@ public class RESTMusicService implements MusicService { @Override public void createPodcastChannel(String url, Context context, ProgressListener progressListener) throws Exception{ + checkServerVersion(context, "1.9", "Creating podcasts not supported."); + Reader reader = getReader(context, progressListener, "createPodcastChannel", null, "url", url); try { new ErrorParser(context).parse(reader); @@ -927,7 +931,9 @@ public class RESTMusicService implements MusicService { } @Override - public void deletePodcastChannel(String id, Context context, ProgressListener progressListener) throws Exception{ + public void deletePodcastChannel(String id, Context context, ProgressListener progressListener) throws Exception { + checkServerVersion(context, "1.9", "Deleting podcasts not supported."); + Reader reader = getReader(context, progressListener, "deletePodcastChannel", null, "id", id); try { new ErrorParser(context).parse(reader); @@ -938,6 +944,8 @@ public class RESTMusicService implements MusicService { @Override public void downloadPodcastEpisode(String id, Context context, ProgressListener progressListener) throws Exception{ + checkServerVersion(context, "1.9", "Downloading podcasts not supported."); + Reader reader = getReader(context, progressListener, "downloadPodcastEpisode", null, "id", id); try { new ErrorParser(context).parse(reader); @@ -948,6 +956,8 @@ public class RESTMusicService implements MusicService { @Override public void deletePodcastEpisode(String id, Context context, ProgressListener progressListener) throws Exception{ + checkServerVersion(context, "1.9", "Deleting podcasts not supported."); + Reader reader = getReader(context, progressListener, "deletePodcastEpisode", null, "id", id); try { new ErrorParser(context).parse(reader); |