Skip to content

Commit

Permalink
print select album
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaarey committed Jun 9, 2024
1 parent dde4c94 commit 76e2693
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -1104,6 +1104,7 @@ func checkArtist(artistUrl string, token string) ([]string, error) {
continue
}
if num > 0 && num <= len(options) {
fmt.Println(options[num-1])
args = append(args, urls[num-1])
} else {
fmt.Println("Option out of range:", opt[0])
Expand All @@ -1120,6 +1121,7 @@ func checkArtist(artistUrl string, token string) ([]string, error) {
continue
}
for i := start; i <= end; i++ {
fmt.Println(options[i-1])
args = append(args, urls[i-1])
}
} else {
Expand Down
2 changes: 2 additions & 0 deletions main_atmos.go
Original file line number Diff line number Diff line change
Expand Up @@ -1050,6 +1050,7 @@ func checkArtist(artistUrl string, token string) ([]string, error) {
continue
}
if num > 0 && num <= len(options) {
fmt.Println(options[num-1])
args = append(args, urls[num-1])
} else {
fmt.Println("Option out of range:", opt[0])
Expand All @@ -1066,6 +1067,7 @@ func checkArtist(artistUrl string, token string) ([]string, error) {
continue
}
for i := start; i <= end; i++ {
fmt.Println(options[i-1])
args = append(args, urls[i-1])
}
} else {
Expand Down

0 comments on commit 76e2693

Please sign in to comment.