From 5cc196f3a9a79c3a1e42466714737d7366a99847 Mon Sep 17 00:00:00 2001 From: Neszt Tibor Date: Sun, 3 Dec 2017 17:44:53 +0100 Subject: [PATCH] config read in function fix --- index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index b0235eb..cde0058 100755 --- a/index.php +++ b/index.php @@ -17,7 +17,8 @@ function read_json_config($filename) { $player_script = '/tmp/yawep_screen_player_script.sh'; -$config = read_json_config('config.json'); +$config_file = 'config.json'; +$config = read_json_config($config_file); $default_player_cmd = "sudo omxplayer -s -o alsa:plughw:0,1 -y --threshold %Buffer% --no-osd --layer 100 --timeout 3 --aspect-mode stretch '%URL%'"; $screenrc_file = "/tmp/yawep_player_screenrc"; $screenlog_file = "/tmp/yawep_screen.log"; -- 2.1.4