mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 14:49:23 +02:00
See #272: updated front-end for transcoding and new API results, improved error handling in player
This commit is contained in:
parent
d3f8fb6cb0
commit
b757ca4616
9 changed files with 87 additions and 35 deletions
|
@ -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
|
||||
})
|
||||
})
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue