From 5bc35124a7077fc318ecfe0771b3cb591bdf6ef1 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Wed, 13 Jul 2005 04:43:46 +0000 Subject: fixed now playing, and added mpd file method to now playing --- index.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 8cb25c76..abf7d4fb 100644 --- a/index.php +++ b/index.php @@ -26,7 +26,12 @@ */ require_once("modules/init.php"); -init_mpd(); + +/* We need to attempt to init the mpd object */ +if (conf('mpd_method') == 'file') { + $myMpd = init_mpd(); +} + show_template('header'); show_menu_items('Home'); show_clear(); @@ -70,7 +75,12 @@ if (conf('refresh_limit') > 0) { show_template('javascript_refresh'); }   - prefs['play_type'] == 'mpd') { show_mpd_pl(); } ?> + prefs['play_type'] == 'mpd') { + show_mpd_pl(); + $myMpd = init_mpd(); + } + ?>   -- cgit