X-Git-Url: https://git.rvb.name/mpd-web.git/blobdiff_plain/e05325ceb8b812fc40b7c3475c59602dde9efdae..2960e74781dd44518c88c276e8eea4aec245795b:/ajax/trackinfo.php?ds=sidebyside diff --git a/ajax/trackinfo.php b/ajax/trackinfo.php index e5cc464..f1c4b36 100644 --- a/ajax/trackinfo.php +++ b/ajax/trackinfo.php @@ -2,16 +2,25 @@ include('mpd.php'); -$cur_track= $mpd->current_track_id; -$playlist= $mpd->playlist; -if($cur_track !=-1) +$cur_track = $mpd->current_track_id; +$playlist = $mpd->playlist; +$playlist_count = $mpd->playlist_count; + +if($cur_track !=-1) { + + $trackno=$cur_track+1; + + echo "