From 598e90097eb29115cad0070250e45663be167f9c Mon Sep 17 00:00:00 2001 From: freearhey Date: Sat, 10 Aug 2019 00:58:11 +0300 Subject: [PATCH] Update format.js Removed deleted channels counter --- helpers/format.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/helpers/format.js b/helpers/format.js index 52e8b1710..e57a18f46 100644 --- a/helpers/format.js +++ b/helpers/format.js @@ -6,8 +6,7 @@ let stats = { total: 0, updated: 0, duplicates: 0, - unvalid: 0, - removed: 0 + unvalid: 0 } let buffer = {} @@ -48,10 +47,8 @@ async function main() { if(util.checkCache(channel.url)) { stats.duplicates++ - stats.removed++ } else if(!util.validateUrl(channel.url)) { stats.unvalid++ - stats.removed++ } else { channels.push(channel) util.addToCache(channel.url) @@ -111,7 +108,7 @@ async function main() { stats.total += channels.length } - console.log(`Total: ${stats.total}. Duplicates: ${stats.duplicates}. Unvalid: ${stats.unvalid}. Updated: ${stats.updated}. Removed: ${stats.removed}.`) + console.log(`Total: ${stats.total}. Duplicates: ${stats.duplicates}. Unvalid: ${stats.unvalid}. Updated: ${stats.updated}.`) } main() \ No newline at end of file