From 3e6418d5638b9b9c92f2c0d92862ce0d3ce7ba12 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Sat, 28 Aug 2021 16:09:45 +0300 Subject: [PATCH] Update format.js --- scripts/format.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/format.js b/scripts/format.js index a72249b08..f1060295d 100644 --- a/scripts/format.js +++ b/scripts/format.js @@ -11,6 +11,7 @@ const ignoreStatus = ['Geo-blocked', 'Not 24/7'] program .usage('[OPTIONS]...') .option('--debug', 'Enable debug mode') + .option('--offline', 'Enable offline mode') .option('-d, --delay ', 'Set delay for each request', parseNumber, 0) .option('-t, --timeout ', 'Set timeout for each request', parseNumber, 5000) .option('-c, --country ', 'Comma-separated list of country codes', '') @@ -56,7 +57,7 @@ async function updatePlaylist(playlist) { updateDescription(channel, playlist) normalizeUrl(channel) - if (ignoreStatus.includes(channel.status)) { + if (config.offline || ignoreStatus.includes(channel.status)) { continue }