mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-13 10:30:03 -04:00
Removed parseMessage function
This commit is contained in:
parent
de7a9c2a4a
commit
f66eac0457
1 changed files with 0 additions and 16 deletions
|
@ -188,22 +188,6 @@ helper.writeToLog = function (country, msg, url) {
|
||||||
this.appendToFile('error.log', now.toISOString() + ' ' + line + '\n')
|
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 = '') {
|
helper.filterPlaylists = function (arr, include = '', exclude = '') {
|
||||||
if (include) {
|
if (include) {
|
||||||
const included = include.split(',').map(filename => `channels/${filename}.m3u`)
|
const included = include.split(',').map(filename => `channels/${filename}.m3u`)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue