fix: fallback to LRCLIB when lyrics line less than 6 lines #1461

This commit is contained in:
Kingkor Roy Tirtho 2024-05-23 15:13:02 +06:00
parent 8fad2251b3
commit 9aea35468f

View File

@ -127,7 +127,7 @@ class SyncedLyricsNotifier extends FamilyAsyncNotifier<SubtitleSimple, Track?>
final token = await spotify.getCredentials(); final token = await spotify.getCredentials();
SubtitleSimple lyrics = await getSpotifyLyrics(token.accessToken); SubtitleSimple lyrics = await getSpotifyLyrics(token.accessToken);
if (lyrics.lyrics.isEmpty) { if (lyrics.lyrics.isEmpty || lyrics.lyrics.length <= 5) {
lyrics = await getLRCLibLyrics(); lyrics = await getLRCLibLyrics();
} }