Update cleaner.js

This commit is contained in:
Aleksandr Statciuk 2022-05-11 17:29:20 +03:00
parent 279a18357e
commit 5bc6722811
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ async function main() {
if (options.debug) logger.info(stream.url) if (options.debug) logger.info(stream.url)
const [_, status] = stream.raw.match(/status="([a-z]+)"/) || [null, null] const [_, status] = stream.raw.match(/status="([a-z]+)"/) || [null, null]
stream.status = status stream.status = status
if (status === 'error' && /^(http|https)/.test(stream.url) && !/\[.*\]$/.test(stream.name)) { if (status === 'error' && /^(http|https)/.test(stream.url)) {
const result = await checkStream(stream) const result = await checkStream(stream)
const newStatus = parseStatus(result.error) const newStatus = parseStatus(result.error)
if (status === newStatus) { if (status === newStatus) {