From 6fbb0e04088f6ac992b6636e1e62d90e86a7dc70 Mon Sep 17 00:00:00 2001 From: zhaarey Date: Sat, 13 Apr 2024 16:40:32 +0800 Subject: [PATCH] fix album title have playlist bug --- main.go | 2 +- main_atmos.go | 2 +- main_select.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 9d1b811..e7ffdd1 100644 --- a/main.go +++ b/main.go @@ -1114,7 +1114,7 @@ func main() { for albumNum, url := range os.Args[1:] { fmt.Printf("Album %d of %d:\n", albumNum+1, albumTotal) var storefront, albumId string - if strings.Contains(url, "playlist") { + if strings.Contains(url, "/playlist/") { storefront, albumId = checkUrlPlaylist(url) } else { storefront, albumId = checkUrl(url) diff --git a/main_atmos.go b/main_atmos.go index 589d4b0..c44842f 100644 --- a/main_atmos.go +++ b/main_atmos.go @@ -1115,7 +1115,7 @@ func main() { for albumNum, url := range os.Args[1:] { fmt.Printf("Album %d of %d:\n", albumNum+1, albumTotal) var storefront, albumId string - if strings.Contains(url, "playlist") { + if strings.Contains(url, "/playlist/") { storefront, albumId = checkUrlPlaylist(url) } else { storefront, albumId = checkUrl(url) diff --git a/main_select.go b/main_select.go index 03493df..c4292c1 100644 --- a/main_select.go +++ b/main_select.go @@ -1152,7 +1152,7 @@ func main() { for albumNum, url := range os.Args[1:] { fmt.Printf("Album %d of %d:\n", albumNum+1, albumTotal) var storefront, albumId string - if strings.Contains(url, "playlist") { + if strings.Contains(url, "/playlist/") { storefront, albumId = checkUrlPlaylist(url) } else { storefront, albumId = checkUrl(url)