From 6906b00c0ebe2b8e8ad713a8899151d0a85d6cfd Mon Sep 17 00:00:00 2001 From: Iced2004 <167831652+Iced2004@users.noreply.github.com> Date: Tue, 4 Aug 2026 16:44:41 -0400 Subject: [PATCH 1/6] Added Apple Music Suffix Removal using Regex --- src/web/backend/playlist/apple_music.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/web/backend/playlist/apple_music.go b/src/web/backend/playlist/apple_music.go index e928418f..f2feeb5d 100644 --- a/src/web/backend/playlist/apple_music.go +++ b/src/web/backend/playlist/apple_music.go @@ -7,10 +7,13 @@ import ( "log/slog" "net/http" "strings" + "regexp" "golang.org/x/net/html" ) +var albumSuffixRe = regexp.MustCompile(`(?i)\s*[-–]\s*(single|ep)\s*$`) + // appleServerData mirrors the top-level shape of the //