mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-28 15:06:02 -05:00
[web-src] Only use track uris if playlist has a random track list
This commit is contained in:
parent
1d80a0fa06
commit
111d3675bf
@ -69,11 +69,19 @@ export default {
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
play: function () {
|
play: function () {
|
||||||
webapi.player_play_uri(this.tracks.map(a => a.uri).join(','), true)
|
if (this.playlist.random) {
|
||||||
|
webapi.player_play_uri(this.tracks.map(a => a.uri).join(','), true)
|
||||||
|
} else {
|
||||||
|
webapi.player_play_uri(this.playlist.uri, true)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
play_track: function (position) {
|
play_track: function (position) {
|
||||||
webapi.player_play_uri(this.tracks.map(a => a.uri).join(','), false, position)
|
if (this.playlist.random) {
|
||||||
|
webapi.player_play_uri(this.tracks.map(a => a.uri).join(','), false, position)
|
||||||
|
} else {
|
||||||
|
webapi.player_play_uri(this.playlist.uri, false, position)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
open_dialog: function (track) {
|
open_dialog: function (track) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user