fix album title have playlist bug

pull/2/head
zhaarey 7 months ago
parent b78b237b8f
commit 6fbb0e0408
  1. 2
      main.go
  2. 2
      main_atmos.go
  3. 2
      main_select.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)

@ -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)

@ -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)

Loading…
Cancel
Save