Update clean.js

This commit is contained in:
Aleksandr Statciuk 2021-08-09 12:44:05 +03:00
parent af539f6b87
commit 34d6e87250
1 changed files with 1 additions and 5 deletions

View File

@ -53,11 +53,7 @@ async function checkPlaylist(playlist) {
channels.push(channel) channels.push(channel)
} else { } else {
const result = await checker.checkStream(channel.data) const result = await checker.checkStream(channel.data)
if ( if (result.status.ok || result.status.reason.includes('timed out')) {
result.status.ok ||
result.status.reason.includes('timed out') ||
result.status.reason.includes('not one of 40{0,1,3,4}')
) {
channels.push(channel) channels.push(channel)
} else { } else {
if (config.debug) log.print(`ERR: ${channel.url} (${result.status.reason})\n`) if (config.debug) log.print(`ERR: ${channel.url} (${result.status.reason})\n`)