From f66eac0457ab3d0ab9da43b6eafeb3d0e14ee634 Mon Sep 17 00:00:00 2001 From: freearhey Date: Tue, 26 May 2020 15:23:36 +0300 Subject: [PATCH] Removed parseMessage function --- scripts/helper.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/scripts/helper.js b/scripts/helper.js index 2aafd730b..e43e95aed 100644 --- a/scripts/helper.js +++ b/scripts/helper.js @@ -188,22 +188,6 @@ helper.writeToLog = function (country, msg, url) { this.appendToFile('error.log', now.toISOString() + ' ' + line + '\n') } -helper.parseMessage = function (err, u) { - if (!err || !err.message) return - - const msgArr = err.message.split('\n') - - if (msgArr.length === 0) return - - const line = msgArr.find(line => { - return line.indexOf(u) === 0 - }) - - if (!line) return - - return line.replace(`${u}: `, '') -} - helper.filterPlaylists = function (arr, include = '', exclude = '') { if (include) { const included = include.split(',').map(filename => `channels/${filename}.m3u`)