mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 08:49:15 +02:00
See #170: added proper meta and support embed for channels
This commit is contained in:
parent
5a855b36a1
commit
a4faf44540
5 changed files with 201 additions and 2 deletions
|
@ -139,7 +139,7 @@ export default {
|
|||
data () {
|
||||
return {
|
||||
time,
|
||||
supportedTypes: ['track', 'album', 'artist', 'playlist'],
|
||||
supportedTypes: ['track', 'album', 'artist', 'playlist', 'channel'],
|
||||
baseUrl: '',
|
||||
error: null,
|
||||
type: null,
|
||||
|
@ -230,7 +230,10 @@ export default {
|
|||
this.fetchTrack(id)
|
||||
}
|
||||
if (type === 'album') {
|
||||
this.fetchTracks({album: id, playable: true, ordering: ",disc_number,position"})
|
||||
this.fetchTracks({album: id, playable: true, ordering: "disc_number,position"})
|
||||
}
|
||||
if (type === 'channel') {
|
||||
this.fetchTracks({channel: id, playable: true, include_channels: 'true', ordering: "-creation_date"})
|
||||
}
|
||||
if (type === 'artist') {
|
||||
this.fetchTracks({artist: id, playable: true, ordering: "-release_date,disc_number,position"})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue