Skip to content

Commit

Permalink
fix local playlist downloading
Browse files Browse the repository at this point in the history
  • Loading branch information
whoeevee committed Jan 30, 2025
1 parent 07c8097 commit 53809ac
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Sources/EeveeSpotify/Premium/ServerSidedReminder.x.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ class ContentOffliningUIHelperImplementationHook: ClassHook<NSObject> {
static let targetName = "Offline_ContentOffliningUIImpl.ContentOffliningUIHelperImplementation"

func downloadToggledWithCurrentAvailability(
_ availability: Int,
_ availability: NSInteger,
addAction: NSObject,
removeAction: NSObject,
pageIdentifier: String,
pageURI: URL
) -> String? {
pageIdentifier: NSString,
pageURI: NSURL
) {
let isPlaylist = [
"free-tier-playlist",
"playlist/ondemand"
Expand All @@ -39,7 +39,7 @@ class ContentOffliningUIHelperImplementationHook: ClassHook<NSObject> {
: nil,
onSecondaryClick: isPlaylist
? {
_ = self.orig.downloadToggledWithCurrentAvailability(
self.orig.downloadToggledWithCurrentAvailability(
availability,
addAction: addAction,
removeAction: removeAction,
Expand All @@ -49,7 +49,5 @@ class ContentOffliningUIHelperImplementationHook: ClassHook<NSObject> {
}
: nil
)

return nil
}
}

0 comments on commit 53809ac

Please sign in to comment.