Skip to content

Commit 9aea354

Browse files
committed
fix: fallback to LRCLIB when lyrics line less than 6 lines #1461
1 parent 8fad225 commit 9aea354

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/provider/spotify/lyrics/synced.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class SyncedLyricsNotifier extends FamilyAsyncNotifier<SubtitleSimple, Track?>
127127
final token = await spotify.getCredentials();
128128
SubtitleSimple lyrics = await getSpotifyLyrics(token.accessToken);
129129

130-
if (lyrics.lyrics.isEmpty) {
130+
if (lyrics.lyrics.isEmpty || lyrics.lyrics.length <= 5) {
131131
lyrics = await getLRCLibLyrics();
132132
}
133133

0 commit comments

Comments
 (0)