diff options
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); |