Skip to content

Commit

Permalink
fix: fallback to LRCLIB when lyrics line less than 6 lines #1461
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed May 23, 2024
1 parent 8fad225 commit 9aea354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/provider/spotify/lyrics/synced.dart
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class SyncedLyricsNotifier extends FamilyAsyncNotifier<SubtitleSimple, Track?>
final token = await spotify.getCredentials();
SubtitleSimple lyrics = await getSpotifyLyrics(token.accessToken);

if (lyrics.lyrics.isEmpty) {
if (lyrics.lyrics.isEmpty || lyrics.lyrics.length <= 5) {
lyrics = await getLRCLibLyrics();
}

Expand Down

0 comments on commit 9aea354

Please sign in to comment.