check also status from systemd

This commit is contained in:
jonathan 2021-03-31 13:33:11 +02:00
parent 8292126643
commit a6bbc79721

View File

@ -454,7 +454,7 @@ export default {
const engine = this.configGui[this.configID].engine_service.split('/').slice(-1)[0].split('.')[0]
const status = await this.$axios.post('api/player/system/', { run: 'status', engine })
if (status.data.data && status.data.data === 'RUNNING') {
if (status.data.data && (status.data.data === 'RUNNING' || status.data.data === 'active')) {
this.isPlaying = 'is-playing'
} else {
this.isPlaying = ''