Update Support Download Classical From Apple Music

https://classical.music.apple.com/vn/album/1780442290
This commit is contained in:
GenzPN
2025-04-15 22:03:15 +07:00
committed by GitHub
parent 2db22524b6
commit 704e8d770e

View File

@@ -92,7 +92,7 @@ func fileExists(path string) (bool, error) {
} }
func checkUrl(url string) (string, string) { func checkUrl(url string) (string, string) {
pat := regexp.MustCompile(`^(?:https:\/\/(?:beta\.music|music)\.apple\.com\/(\w{2})(?:\/album|\/album\/.+))\/(?:id)?(\d[^\D]+)(?:$|\?)`) pat := regexp.MustCompile(`^(?:https:\/\/(?:beta\.music|music|classical\.music)\.apple\.com\/(\w{2})(?:\/album|\/album\/.+))\/(?:id)?(\d[^\D]+)(?:$|\?)`)
matches := pat.FindAllStringSubmatch(url, -1) matches := pat.FindAllStringSubmatch(url, -1)
if matches == nil { if matches == nil {