fix album title have playlist bug
This commit is contained in:
parent
b78b237b8f
commit
6fbb0e0408
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user