mirror of
https://github.com/zhaarey/apple-music-downloader.git
synced 2025-10-23 15:11:05 +00:00
Compare commits
2 Commits
2db22524b6
...
6bde4c5a90
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6bde4c5a90 | ||
|
|
704e8d770e |
2
main.go
2
main.go
@@ -92,7 +92,7 @@ func fileExists(path string) (bool, error) {
|
||||
}
|
||||
|
||||
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)
|
||||
|
||||
if matches == nil {
|
||||
|
||||
Reference in New Issue
Block a user