'Returns a TrackInfo object for a discogs track.'

def get_track_info(self, track, index):

    title = track['title']
    track_id = None
    (medium, medium_index, _) = self.get_track_index(track['position'])
    (artist, artist_id) = self.get_artist(track.get('artists', []))
    length = self.get_track_length(track['duration'])
    return TrackInfo(title, track_id, artist, artist_id, length, index, medium, medium_index, artist_sort=None, disctitle=None, artist_credit=None)
