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: the genius-lyrics and lyrics harnesses link with the Genius match

My-Name-Is-Jeffb7a95dacdd79
diff --git a/harness/genius-lyrics/build.sh b/harness/genius-lyrics/build.sh
index a64b5d2d..35144a1f 100755
--- a/harness/genius-lyrics/build.sh
+++ b/harness/genius-lyrics/build.sh
@@ -6,6 +6,6 @@ HERE=$(cd "$(dirname "$0")" && pwd)
SRC=$(cd "$HERE/../../tweak/Sources" && pwd)
mkdir -p "$HERE/build"
xcrun -sdk macosx clang -target arm64-apple-ios17.0-macabi -isysroot "$(xcrun --sdk macosx --show-sdk-path)" -iframework "$(xcrun --sdk macosx --show-sdk-path)/System/iOSSupport/System/Library/Frameworks" -fobjc-arc -g -Wall -I"$SRC" -DSG_VERSION=\"0.0.0\" \
- "$HERE/check.m" "$SRC/Shared/LyricsSources/Genius.m" "$SRC/Shared/LyricsSources/LrcLib.m" "$SRC/Shared/LyricsSources/QQMusic.m" "$SRC/Shared/LyricsMeanings/Meanings.m" "$SRC/Shared/Lyrics/KaraokeTiming.m" "$SRC/Shared/AdBlock/Protobuf.m" \
+ "$HERE/check.m" "$SRC/Shared/LyricsSources/Genius.m" "$SRC/Shared/LyricsSources/LrcLib.m" "$SRC/Shared/LyricsSources/Lyricsfile.m" "$SRC/Shared/LyricsSources/QQMusic.m" "$SRC/Shared/LyricsMeanings/Meanings.m" "$SRC/Shared/Lyrics/KaraokeTiming.m" "$SRC/Shared/AdBlock/Protobuf.m" \
-framework UIKit -framework Foundation -o "$HERE/build/check"
"$HERE/build/check" "$@"
diff --git a/harness/lyrics/stubs.m b/harness/lyrics/stubs.m
index 977fa5c0..9aa5cc28 100644
--- a/harness/lyrics/stubs.m
+++ b/harness/lyrics/stubs.m
@@ -15,6 +15,7 @@ void SGPlayFeedback(NSInteger feedback) {} // the name it has had since Haptic
// -credit names the source (Show source is -spotifyglass.lyricsCredit 1); one naming Spicy Lyrics is
// required, so it shows either way, and links to two people, as SpicyLyrics.m's community syncs do.
NSString *SGLyricsCreditFor(NSString *trackID) { return [NSUserDefaults.standardUserDefaults stringForKey:@"credit"] ?: @"the harness"; }
+NSString *SGLyricsLeadArtist(NSString *artist) { return artist; }
// LyricsSources.h's, declared here: that header's SPTPlayerTrack clashes with the track stub below.
@interface SGLyricsLink : NSObject
@property (nonatomic, copy) NSString *title;