Skip to content

Liquid Glass and Apple Music touches for the Spotify iOS app. A GPL-3.0 fork of spoti.pw 0.21.1.

C

fix: a walk preferring word timing logs once that it asks on

My-Name-Is-Jeffd5ce32dae3c1
diff --git a/tweak/Sources/Shared/LyricsSources/LyricsSources.m b/tweak/Sources/Shared/LyricsSources/LyricsSources.m
index 56a9ead1..f62e99ac 100644
--- a/tweak/Sources/Shared/LyricsSources/LyricsSources.m
+++ b/tweak/Sources/Shared/LyricsSources/LyricsSources.m
@@ -445,9 +445,7 @@ static BOOL settled(SGLyricsWalk *walk) {
SGLyricsResult *merged = walk.merged;
if (!(merged.synced && merged.texts.count && merged.karaokeLines.count)) return NO;
if (!SGFlag(SGKeyLyricsPreferWordTiming, NO)) return YES;
- if (SGKaraokeLinesTiming(merged.karaokeLines) == SGKaraokeTimingWords) return YES;
- if (walk.index < walk.order.count) SGLog(@"lyrics: %@ line timed by %@, asking on for words timed", walk.query.trackID, merged.provider);
- return NO;
+ return SGKaraokeLinesTiming(merged.karaokeLines) == SGKaraokeTimingWords;
}
static void step(SGLyricsWalk *walk) {
@@ -513,6 +511,9 @@ static void step(SGLyricsWalk *walk) {
merged.karaokeLines = fresh.karaokeLines;
merged.wordTimed = fresh.wordTimed;
merged.provider = fresh.provider ?: provider.name;
+ if (SGFlag(SGKeyLyricsPreferWordTiming, NO) && SGKaraokeLinesTiming(fresh.karaokeLines) == SGKaraokeTimingLine && walk.index < walk.order.count) {
+ SGLog(@"lyrics: %@ line timed by %@, asking on for words timed", query.trackID, merged.provider);
+ }
}
if (betterTexts(merged, fresh)) {
merged.starts = fresh.starts;