mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
pleasseeeee
This commit is contained in:
parent
fd58ae7f89
commit
531340ae92
2 changed files with 4 additions and 3 deletions
|
|
@ -208,8 +208,6 @@ class SpotifyController: MediaControllerProtocol {
|
|||
}
|
||||
}
|
||||
|
||||
// MARK: - Private Methods
|
||||
|
||||
private func scheduleCanvasFetchIfNeeded(for trackURI: String) {
|
||||
guard !trackURI.isEmpty else { return }
|
||||
guard playbackState.liveArtworkURL == nil else { return }
|
||||
|
|
@ -243,7 +241,6 @@ class SpotifyController: MediaControllerProtocol {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
private func executeCommand(_ command: String) async {
|
||||
let script = "tell application \"Spotify\" to \(command)"
|
||||
try? await AppleScriptHelper.executeVoid(script)
|
||||
|
|
|
|||
|
|
@ -703,6 +703,7 @@ class MusicManager: ObservableObject {
|
|||
|
||||
// Check for artwork changes
|
||||
let artworkChanged = state.artwork != nil && state.artwork != self.artworkData
|
||||
|
||||
let hasContentChange =
|
||||
titleChanged
|
||||
|| artistChanged
|
||||
|
|
@ -751,6 +752,7 @@ class MusicManager: ObservableObject {
|
|||
|
||||
self.refreshExplicitFlag(for: state)
|
||||
|
||||
|
||||
// Only update sneak peek if there's actual content and something changed
|
||||
if shouldAutoPeekOnTrackChange && !state.title.isEmpty && !state.artist.isEmpty && state.isPlaying {
|
||||
self.updateSneakPeek()
|
||||
|
|
@ -1443,6 +1445,8 @@ class MusicManager: ObservableObject {
|
|||
videoArtworkURL = nil
|
||||
return
|
||||
}
|
||||
// Se il player non è Apple Music, non toccare videoArtworkURL:
|
||||
// SpotifyController gestisce il canvas in modo autonomo tramite liveArtworkURL.
|
||||
guard bundleIdentifier == "com.apple.Music" else {
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue