mirror of
https://github.com/zhaarey/apple-music-downloader.git
synced 2025-10-23 15:11:05 +00:00
fix album title have playlist bug
This commit is contained in:
2
main.go
2
main.go
@@ -1114,7 +1114,7 @@ func main() {
|
|||||||
for albumNum, url := range os.Args[1:] {
|
for albumNum, url := range os.Args[1:] {
|
||||||
fmt.Printf("Album %d of %d:\n", albumNum+1, albumTotal)
|
fmt.Printf("Album %d of %d:\n", albumNum+1, albumTotal)
|
||||||
var storefront, albumId string
|
var storefront, albumId string
|
||||||
if strings.Contains(url, "playlist") {
|
if strings.Contains(url, "/playlist/") {
|
||||||
storefront, albumId = checkUrlPlaylist(url)
|
storefront, albumId = checkUrlPlaylist(url)
|
||||||
} else {
|
} else {
|
||||||
storefront, albumId = checkUrl(url)
|
storefront, albumId = checkUrl(url)
|
||||||
|
|||||||
@@ -1115,7 +1115,7 @@ func main() {
|
|||||||
for albumNum, url := range os.Args[1:] {
|
for albumNum, url := range os.Args[1:] {
|
||||||
fmt.Printf("Album %d of %d:\n", albumNum+1, albumTotal)
|
fmt.Printf("Album %d of %d:\n", albumNum+1, albumTotal)
|
||||||
var storefront, albumId string
|
var storefront, albumId string
|
||||||
if strings.Contains(url, "playlist") {
|
if strings.Contains(url, "/playlist/") {
|
||||||
storefront, albumId = checkUrlPlaylist(url)
|
storefront, albumId = checkUrlPlaylist(url)
|
||||||
} else {
|
} else {
|
||||||
storefront, albumId = checkUrl(url)
|
storefront, albumId = checkUrl(url)
|
||||||
|
|||||||
@@ -1152,7 +1152,7 @@ func main() {
|
|||||||
for albumNum, url := range os.Args[1:] {
|
for albumNum, url := range os.Args[1:] {
|
||||||
fmt.Printf("Album %d of %d:\n", albumNum+1, albumTotal)
|
fmt.Printf("Album %d of %d:\n", albumNum+1, albumTotal)
|
||||||
var storefront, albumId string
|
var storefront, albumId string
|
||||||
if strings.Contains(url, "playlist") {
|
if strings.Contains(url, "/playlist/") {
|
||||||
storefront, albumId = checkUrlPlaylist(url)
|
storefront, albumId = checkUrlPlaylist(url)
|
||||||
} else {
|
} else {
|
||||||
storefront, albumId = checkUrl(url)
|
storefront, albumId = checkUrl(url)
|
||||||
|
|||||||
Reference in New Issue
Block a user