This commit is contained in:
eevee
2024-05-06 20:39:10 +03:00
parent 7daf58ec26
commit 9319ba48ac
4 changed files with 7 additions and 4 deletions
+3 -1
View File
@@ -29,7 +29,9 @@ class EncoreButtonHook: ClassHook<UIButton> {
func getCurrentTrackLyricsData() throws -> Data {
let track = HookedInstances.currentTrack!
guard let track = HookedInstances.currentTrack else {
throw GeniusLyricsError.NoCurrentTrack
}
let title = track.trackTitle()
.removeMatches("\\(.*\\)")
+2 -2
View File
@@ -5,9 +5,9 @@ class HookedInstances {
static var currentTrack: SPTPlayerTrack?
}
class SPTNowPlayingContentLayerViewModelHook: ClassHook<NSObject> {
class SPTNowPlayingModelHook: ClassHook<NSObject> {
static let targetName = "SPTNowPlayingContentLayerViewModel"
static let targetName = "SPTNowPlayingModel"
func currentTrack() -> SPTPlayerTrack? {
@@ -1,6 +1,7 @@
import Foundation
enum GeniusLyricsError: Swift.Error {
case NoCurrentTrack
case DecodingError
case NoSuchSong
}
+1 -1
View File
@@ -1,6 +1,6 @@
Package: com.eevee.spotify
Name: EeveeSpotify
Version: 2.0
Version: 2.1
Architecture: iphoneos-arm
Description: A tweak to get Spotify Premium for free, just like Spotilife
Maintainer: Eevee