From 1d08ba643207d67fcc92cc63e1848118d4870211 Mon Sep 17 00:00:00 2001 From: Gerrit Linnemann Date: Mon, 2 Nov 2015 15:44:13 +0100 Subject: [PATCH] ready4testing --- kitchenradio/app/radio.js | 6 ++++-- kitchenradio/config.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/kitchenradio/app/radio.js b/kitchenradio/app/radio.js index 177835c..a386545 100644 --- a/kitchenradio/app/radio.js +++ b/kitchenradio/app/radio.js @@ -52,7 +52,7 @@ exports.play = function(idx) { if(channel !== undefined) { var stream2play = channel.stream; - /*try { + try { var parsers = require("playlist-parser"); var M3U = parsers.M3U; @@ -65,7 +65,7 @@ exports.play = function(idx) { } } catch(e) { Log.error(e); - }*/ + } var ls = exec( @@ -78,6 +78,8 @@ exports.play = function(idx) { } } ); + + setTimeout(function() { exec('echo "pause"', function(error, stdout, stderr) {}); }, 4000); ls.on('exit', function (code){ Log.log('Radio: Child process exited with exit code ' + code); diff --git a/kitchenradio/config.json b/kitchenradio/config.json index 285fde8..156fa24 100644 --- a/kitchenradio/config.json +++ b/kitchenradio/config.json @@ -14,7 +14,7 @@ } ], "logging": { - "mode": "friendly", + "mode": "friendly_", "trace": "no" } } \ No newline at end of file