summaryrefslogtreecommitdiffstats
path: root/modules/localplay/mpd.controller.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-06-06 03:11:40 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-06-06 03:11:40 +0000
commit88cac15dd7d3af9fb87d1a430c079205b91801a0 (patch)
tree6e6af155a05b398a4927bee2aa6004ec93cd73b9 /modules/localplay/mpd.controller.php
parent6c570d4e5a66ca2d49295f6352c71cee6ae32097 (diff)
downloadampache-88cac15dd7d3af9fb87d1a430c079205b91801a0.tar.gz
ampache-88cac15dd7d3af9fb87d1a430c079205b91801a0.tar.bz2
ampache-88cac15dd7d3af9fb87d1a430c079205b91801a0.zip
fixed stream/localplay buttons and the mpd skip now works *gasp*
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;