From b86aeb514445c6f03a93202e22b91b3e921e1b07 Mon Sep 17 00:00:00 2001 From: freearhey Date: Sat, 20 Jul 2019 10:06:29 +0300 Subject: [PATCH] Added debug mode --- helpers/formatter.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/helpers/formatter.js b/helpers/formatter.js index cbffbcc312..ff7bfd9efd 100644 --- a/helpers/formatter.js +++ b/helpers/formatter.js @@ -1,11 +1,15 @@ const util = require('./util') +const debug = false let total = 0 function init() { let countries = util.parsePlaylist('index.m3u') - countries = countries.slice(0, 1) + + if(debug) { + countries = countries.slice(0, 2) + } let channels = []