From 17894e71fb2f94e85e9321ed101eddd0eca3fd85 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Fri, 11 Mar 2022 19:03:30 +0300 Subject: [PATCH] Update cleaner.js --- scripts/commands/playlist/cleaner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/commands/playlist/cleaner.js b/scripts/commands/playlist/cleaner.js index 0c2f89fab..3433526b3 100644 --- a/scripts/commands/playlist/cleaner.js +++ b/scripts/commands/playlist/cleaner.js @@ -19,7 +19,7 @@ async function main() { for (const stream of playlist.items) { const [_, status] = stream.raw.match(/status="([a-z]+)"/) || [null, null] stream.status = status - if (status === 'error' && /^(http|https)/.test(stream.url)) { + if (status === 'error' && /^(http|https)/.test(stream.url) && !/\[.*\]$/.test(stream.name)) { const result = await checkStream(stream) const newStatus = parseStatus(result.error) if (status === newStatus) {