1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-05 19:41:55 +02:00
This commit is contained in:
Karl 'vollmerk' Vollmer 2005-07-16 06:22:32 +00:00
parent 4a9909a8a1
commit 3d1fbbfb74
2 changed files with 4 additions and 2 deletions

View file

@ -461,7 +461,9 @@ function get_now_playing() {
$results[] = array('song'=>$song,'user'=>$np_user);
} // end while
if (is_object($GLOBALS['myMpd']) AND conf('mpd_method') == 'file') {
$myMpd = init_mpd();
if (is_object($myMpd) AND conf('mpd_method') == 'file') {
$sql = "SELECT song.id FROM song WHERE file = \"". conf('mpd_dir') . "/" .
$myMpd->playlist[$myMpd->current_track_id]['file']. "\"";