X-Git-Url: https://git.rvb.name/mpd-web.git/blobdiff_plain/e05325ceb8b812fc40b7c3475c59602dde9efdae..refs/heads/master:/ajax/trackinfo.php?ds=sidebyside diff --git a/ajax/trackinfo.php b/ajax/trackinfo.php index e5cc464..ef86893 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 "