fix: Read the correct lyrics

This commit is contained in:
antonio 2023-05-02 18:53:04 +02:00
parent 70d58a9232
commit 684fd00ed2
2 changed files with 2 additions and 2 deletions

View file

@ -256,7 +256,7 @@ public class SongRepository {
@Override @Override
public void onResponse(@NonNull Call<ApiResponse> call, @NonNull Response<ApiResponse> response) { public void onResponse(@NonNull Call<ApiResponse> call, @NonNull Response<ApiResponse> response) {
if (response.isSuccessful() && response.body() != null && response.body().getSubsonicResponse().getLyrics() != null) { if (response.isSuccessful() && response.body() != null && response.body().getSubsonicResponse().getLyrics() != null) {
lyrics.setValue(response.body().getSubsonicResponse().getLyrics().getContent()); lyrics.setValue(response.body().getSubsonicResponse().getLyrics().getValue());
} }
} }

View file

@ -1,7 +1,7 @@
package com.cappielloantonio.play.subsonic.models package com.cappielloantonio.play.subsonic.models
class Lyrics { class Lyrics {
var content: String? = null var value: String? = null
var artist: String? = null var artist: String? = null
var title: String? = null var title: String? = null
} }