ошибка TypeError: 'int' object is not subscriptable при вызове self.getAudioInfo() в строке, self.url = self.listOfAudio[self.trackId]['url']. Помогите!
class Track():
def getAudioInfo(self):
self.url = self.listOfAudio[self.trackId]['url']
self.artist = self.listOfAudio[self.trackId]['artist']
self.title = self.listOfAudio[self.trackId]['title']
return '{0} - {1}'.format(self.artist, self.title)
def __init__(self, trackId, uid=124366326):
self.listOfAudio = vkapi.audio.get(owner_id=uid)
print(self.listOfAudio)
self.trackId = trackId
self.getAudioInfo()
track1 = Track(0)