try catch for delete and wget

This commit is contained in:
Gerrit Linnemann 2015-11-02 16:40:01 +01:00
parent 9f52bbb9c5
commit d2f15e69cf

View File

@ -58,8 +58,16 @@ exports.play = function(idx) {
var stream2play = channel.stream;
var m3u = '/tmp/kitchenradio.m3u';
try {
fs.unlinkSync(m3u);
} catch(e) {
Log.error(e);
}
try {
wget.download(channel.stream, m3u);
} catch(e) {
Log.error(e);
}
if(Helper.isDefinedAndNotNull(Child)) {
try {