diff --git a/Tagging/ShazamApi.cs b/Tagging/ShazamApi.cs index 738a017..1f5ffb1 100644 --- a/Tagging/ShazamApi.cs +++ b/Tagging/ShazamApi.cs @@ -105,6 +105,12 @@ static void PopulateAttributes(JsonElement rootElement, ShazamResult result) { } PopulateAppleID(shazamSongElement, result); + + if(String.IsNullOrEmpty(result.AppleSongID)) { + // As of March 2024 + // shazam.com/track/[ID] redirects to shazam.com/song/[AppleSongID] + result.Url = result.Url.Replace("/track/", "/snippets/email-share/"); + } } static string ImproveUrl(string url) {