fix: apple music to use original url instead of metadata url

Apple Music returns the url without the query parameter in the opengraph meta tags, causing the regex to not find the track id, meaning any embed links generated would only link to the album.
This commit is contained in:
Zomatree
2025-09-19 02:41:53 +01:00
parent cc7a7962a8
commit bfe4018e43

View File

@@ -312,7 +312,7 @@ pub async fn populate_special(original_url: String, metadata: &mut WebsiteMetada
Some(Special::GIF)
} else {
RE_APPLE_MUSIC
.captures_iter(url)
.captures_iter(&original_url)
.next()
.map(|captures| Special::AppleMusic {
album_id: captures[1].to_string(),