current_track_id;
$playlist = $mpd->playlist;
$playlist_count = $mpd->playlist_count;
if($cur_track !=-1) {
$trackno=$cur_track+1;
echo "
#$trackno/$playlist_count
";
if ($playlist[$cur_track]['name']==$playlist[$cur_track]['title']) {
echo "".htmlentities(cut_file($playlist[$cur_track]['name']))."
";
} else {
echo "".htmlentities($playlist[$cur_track]['title'])."
";
}
} else {
echo "#-/$playlist_count
";
echo "No track selected
";
}
?>