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