workaround Navidrome's incorrect getLyricsBySongId response schema

This commit is contained in:
Drew Weymouth
2024-06-03 08:12:15 -07:00
parent 4fe6cb95d9
commit c6b6da1f06
3 changed files with 10 additions and 4 deletions
@@ -359,8 +359,14 @@ func (s *subsonicMediaProvider) GetLyrics(track *mediaprovider.Track) (*mediapro
Synced: lyric.Synced,
}
for _, line := range lyric.Lines {
// Navidrome's incorrect lyric text field
// TODO: remove this after Navidrome 0.53.0 release.
text := line.Value
if text == "" {
text = line.Text
}
mpLyrics.Lines = append(mpLyrics.Lines, mediaprovider.LyricLine{
Text: line.Text,
Text: text,
Start: float64(line.Start) / 1000,
})
}