mirror of
https://github.com/zhaarey/apple-music-downloader.git
synced 2025-10-23 15:11:05 +00:00
Update Support Download Classical From Apple Music
https://classical.music.apple.com/vn/album/1780442290
This commit is contained in:
2
main.go
2
main.go
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user