diff --git a/Tagging/ShazamApi.cs b/Tagging/ShazamApi.cs index 8ea3945..3dc8fde 100644 --- a/Tagging/ShazamApi.cs +++ b/Tagging/ShazamApi.cs @@ -111,7 +111,9 @@ static void PopulateAttributes(JsonElement rootElement, ShazamResult 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/"); + if(TryGetNestedProperty(attrsElement, ["share", "html"], out var shareHtmlElement)) { + result.Url = shareHtmlElement.GetString(); + } } else { // Some URLs redirect to / unless the 'co' parameter is kept // Examples: 11180294, 51774667, 538859473