mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-05 19:41:55 +02:00
wups
This commit is contained in:
parent
4a9909a8a1
commit
3d1fbbfb74
2 changed files with 4 additions and 2 deletions
|
@ -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']. "\"";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue