See #170: added proper meta and support embed for channels

This commit is contained in:
Eliot Berriot 2020-01-30 15:47:45 +01:00
parent 5a855b36a1
commit a4faf44540
No known key found for this signature in database
GPG key ID: 6B501DFD73514E14
5 changed files with 201 additions and 2 deletions

View file

@ -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"})