mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
fix: fallback to LRCLIB when lyrics line less than 6 lines #1461
This commit is contained in:
parent
8fad2251b3
commit
9aea35468f
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user