See #272: updated front-end for transcoding and new API results, improved error handling in player

This commit is contained in:
Eliot Berriot 2018-10-26 15:21:35 +02:00
parent d3f8fb6cb0
commit b757ca4616
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
9 changed files with 87 additions and 35 deletions

View file

@ -79,10 +79,14 @@ export default {
return true
}
if (this.track) {
return this.track.is_playable
return this.track.uploads && this.track.uploads.length > 0
} else if (this.artist) {
return this.albums.filter((a) => {
return a.is_playable === true
}).length > 0
} else if (this.tracks) {
return this.tracks.filter((t) => {
return t.is_playable
return t.uploads && t.uploads.length > 0
}).length > 0
}
return false
@ -139,7 +143,7 @@ export default {
self.isLoading = false
}, 250)
return tracks.filter(e => {
return e.is_playable === true
return e.uploads && e.uploads.length > 0
})
})
},