summaryrefslogtreecommitdiffstats
path: root/modules/localplay/mpd.controller.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/localplay/mpd.controller.php')
-rw-r--r--modules/localplay/mpd.controller.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/localplay/mpd.controller.php b/modules/localplay/mpd.controller.php
index 189e9b74..1cd8fec9 100644
--- a/modules/localplay/mpd.controller.php
+++ b/modules/localplay/mpd.controller.php
@@ -345,11 +345,15 @@ class AmpacheMpd {
*/
function get_status() {
+ $track = $this->_mpd->current_track_id;
+
/* Construct the Array */
$array['state'] = $this->_mpd->state;
$array['volume'] = $this->_mpd->volume;
$array['repeat'] = $this->_mpd->repeat;
$array['random'] = $this->_mpd->random;
+ $array['track'] = $track;
+ $array['track_title'] = $this->_mpd->playlist[$track]['Title'];
return $array;