mirror of
https://github.com/Superredstone/spotiflac-cli.git
synced 2026-03-07 20:18:07 +01:00
fix: add error checking on playlist download
This commit is contained in:
@@ -65,7 +65,10 @@ func Download(application *app.App, url string, output_folder string) error {
|
||||
PlaylistName: metadata.Info.Owner.Name,
|
||||
}
|
||||
|
||||
application.DownloadTrack(downloadRequest)
|
||||
_, err = application.DownloadTrack(downloadRequest)
|
||||
if err != nil {
|
||||
fmt.Println("Unable to download " + track.Name + " - " + track.Artists)
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user