func DownloadPlaylist(pid string) {
	user := InitAuth()
	cli := UserData{
		UserClient: user,
	}
	playlistID := spotify.ID(pid)
	trackListJSON, _ := cli.UserClient.GetPlaylistTracks(playlistID)
	for _, val := range trackListJSON.Tracks {
		cli.TrackList = append(cli.TrackList, val.Track)
	}
	CompareTrackList(cli)
}
// DownloadPlaylist Start initializes complete program
DownloadPlaylist Start initializes complete program
// DownloadPlaylist Start initializes complete program
func DownloadPlaylist(pid string) {
	user := InitAuth()
	cli := UserData{
		UserClient: user,
	}
	playlistID := spotify.ID(pid)
	trackListJSON, _ := cli.UserClient.GetPlaylistTracks(playlistID)
	for _, val := range trackListJSON.Tracks {
		cli.TrackList = append(cli.TrackList, val.Track)
	}
	CompareTrackList(cli)
}
func DownloadPlaylist ( pid string ) { user := InitAuth ( ) cli := UserData { UserClient : user , } playlistID := spotify . ID ( pid ) trackListJSON , _ := cli . UserClient . GetPlaylistTracks ( playlistID ) for _ , val := range trackListJSON . Tracks { cli . TrackList = append ( cli . TrackList , val . Track ) } CompareTrackList ( cli ) }
DownloadPlaylist Start initializes complete program
DownloadPlaylist Start initializes complete program