mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-24 13:13:17 -05:00
[web-src] genre play/add to Q uses genre track lists and not the album tracks (which may incl tracks of other genres)
This commit is contained in:
parent
47bdff255c
commit
b39e472e2a
@ -39,22 +39,22 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
play: function () {
|
play: function () {
|
||||||
this.$emit('close')
|
this.$emit('close')
|
||||||
webapi.library_genre(this.genre.name).then(({ data }) =>
|
webapi.library_genre_tracks(this.genre.name).then(({ data }) =>
|
||||||
webapi.player_play_uri(data.albums.items.map(a => a.uri).join(','), false)
|
webapi.player_play_uri(data.tracks.items.map(a => a.uri).join(','), false)
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
|
||||||
queue_add: function () {
|
queue_add: function () {
|
||||||
this.$emit('close')
|
this.$emit('close')
|
||||||
webapi.library_genre(this.genre.name).then(({ data }) =>
|
webapi.library_genre_tracks(this.genre.name).then(({ data }) =>
|
||||||
webapi.queue_add(data.albums.items.map(a => a.uri).join(','))
|
webapi.queue_add(data.tracks.items.map(a => a.uri).join(','))
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
|
||||||
queue_add_next: function () {
|
queue_add_next: function () {
|
||||||
this.$emit('close')
|
this.$emit('close')
|
||||||
webapi.library_genre(this.genre.name).then(({ data }) =>
|
webapi.library_genre_tracks(this.genre.name).then(({ data }) =>
|
||||||
webapi.queue_add_next(data.albums.items.map(a => a.uri).join(','))
|
webapi.queue_add_next(data.tracks.items.map(a => a.uri).join(','))
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -76,7 +76,9 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
play: function () {
|
play: function () {
|
||||||
webapi.player_play_uri(this.genre_albums.items.map(a => a.uri).join(','), true)
|
webapi.library_genre_tracks(this.name).then(({ data }) =>
|
||||||
|
webapi.player_play_uri(data.tracks.items.map(a => a.uri).join(','), true)
|
||||||
|
)
|
||||||
},
|
},
|
||||||
|
|
||||||
open_album: function (album) {
|
open_album: function (album) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user