From a53702f69c9ddfb66b2348e41d23e88052b38ce8 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Tue, 10 Aug 2021 12:52:11 +0300 Subject: [PATCH] Update format.js --- scripts/format.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/format.js b/scripts/format.js index fff28268c7..af382fb4fe 100644 --- a/scripts/format.js +++ b/scripts/format.js @@ -62,10 +62,10 @@ async function updatePlaylist(playlist) { for (const channel of playlist.channels) { addMissingData(channel) const checkOnline = config.status || config.resolution - const skip = + const skipChannel = channel.status && ignoreStatus.map(i => i.toLowerCase()).includes(channel.status.toLowerCase()) - if (checkOnline && !skip) { + if (checkOnline && !skipChannel) { await checker .checkStream(channel.data) .then(result => {