rename tracks field

This commit is contained in:
simon987 2020-08-08 14:37:32 -04:00
parent 65bafb2b54
commit 927072e6aa

View File

@ -100,8 +100,8 @@ export default {
return t
})
if (this.artistInfo.spotifyPreviewUrls.length > 0) {
const randSong = this.artistInfo.spotifyPreviewUrls[Math.floor(Math.random() * this.artistInfo.spotifyPreviewUrls.length)]
if (this.artistInfo.tracks.length > 0) {
const randSong = this.artistInfo.tracks[Math.floor(Math.random() * this.artistInfo.tracks.length)]
this.audio = new Audio(randSong.url)
this.playingSong = randSong.name
this.playingRelease = randSong.release