Skip to content

Commit

Permalink
Fix: Make MusixmatchRestricted error case a no-op
Browse files Browse the repository at this point in the history
The pop-up notification for MusixmatchRestricted errors was
found to be quite annoying. This commit removes the handling
code for this specific error case, no more of that stupid popup.

Signed-off-by: Dark-Matter7232 <[email protected]>
  • Loading branch information
Dark-Matter7232 committed Aug 6, 2024
1 parent 6c2bd39 commit cc7310f
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions Sources/EeveeSpotify/Lyrics/CustomLyrics.x.swift
Original file line number Diff line number Diff line change
Expand Up @@ -181,18 +181,8 @@ func getCurrentTrackLyricsData(originalLyrics: Lyrics? = nil) throws -> Data {
}

case .MusixmatchRestricted:

if !hasShownRestrictedPopUp {

PopUpHelper.showPopUp(
delayed: false,
message: "The tweak is unable to load lyrics from Musixmatch because they are restricted. It's likely a copyright issue due to the US IP address, so you should change it if you're in the US or use a VPN.",
buttonText: "OK"
)

hasShownRestrictedPopUp.toggle()
}

// No-op: Do nothing when this error occurs
break
default:
break
}
Expand Down

0 comments on commit cc7310f

Please sign in to comment.