예제 #1
0
func ToSconsifyTrack(track *sp.Track) *Track {
	artist := track.Artist(0)
	return InitTrack(track.Link().String(), artist.Name(), track.Name(), track.Duration().String())
}
예제 #2
0
func (spotify *Spotify) isTrackAvailable(track *sp.Track) bool {
	return track.Availability() == sp.TrackAvailabilityAvailable
}