feat: added the ability to request download for an unplayed podcast episode

This commit is contained in:
antonio 2023-07-31 11:39:35 +02:00
parent 1ebe9ff8ba
commit b267b904cc
10 changed files with 79 additions and 2 deletions

View file

@ -133,4 +133,21 @@ public class PodcastRepository {
}
});
}
public void downloadPodcastEpisode(String episodeId) {
App.getSubsonicClientInstance(false)
.getPodcastClient()
.downloadPodcastEpisode(episodeId)
.enqueue(new Callback<ApiResponse>() {
@Override
public void onResponse(@NonNull Call<ApiResponse> call, @NonNull Response<ApiResponse> response) {
}
@Override
public void onFailure(@NonNull Call<ApiResponse> call, @NonNull Throwable t) {
}
});
}
}