Implemented Top Songs view per artist

This commit is contained in:
CappielloAntonio 2021-08-02 09:31:44 +02:00
parent 7ad2e1da1d
commit f321a5520f
6 changed files with 37 additions and 26 deletions

View file

@ -110,9 +110,9 @@ public class BrowsingClient {
return browsingService.getSimilarSongs2(subsonic.getParams(), id, limit);
}
public Call<SubsonicResponse> getTopSongs(String id, int count) {
public Call<SubsonicResponse> getTopSongs(String artist, int count) {
Log.d(TAG, "getTopSongs()");
return browsingService.getTopSongs(subsonic.getParams(), id, count);
return browsingService.getTopSongs(subsonic.getParams(), artist, count);
}
private OkHttpClient getOkHttpClient() {

View file

@ -59,5 +59,5 @@ public interface BrowsingService {
Call<SubsonicResponse> getSimilarSongs2(@QueryMap Map<String, String> params, @Query("id") String id, @Query("count") int count);
@GET("getTopSongs")
Call<SubsonicResponse> getTopSongs(@QueryMap Map<String, String> params, @Query("id") String id, @Query("count") int count);
Call<SubsonicResponse> getTopSongs(@QueryMap Map<String, String> params, @Query("artist") String artist, @Query("count") int count);
}