From 8f1208a8de5ce5a107da91182d77c981e8d4bc9a Mon Sep 17 00:00:00 2001 From: freearhey Date: Mon, 4 Nov 2019 12:46:57 +0300 Subject: [PATCH] Fixed error in calculation of the number of channels --- scripts/update-readme.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/update-readme.js b/scripts/update-readme.js index 697b974d8..ccca77f15 100644 --- a/scripts/update-readme.js +++ b/scripts/update-readme.js @@ -34,19 +34,19 @@ function parseIndex() { for(let item of playlist.items) { - // country + // countries if(countries[countryCode]) { countries[countryCode].channels++ } else { countries[countryCode] = { country: countryName, - channels: playlist.items.length, + channels: 1, playlist: `https://iptv-org.github.io/iptv/countries/${countryCode}.m3u`, epg: countryEpg } } - // language + // languages const languageName = item.tvg.language || 'Undefined' const languageCode = helper.getISO6391Code(languageName) || 'undefined' if(languages[languageCode]) { @@ -59,7 +59,7 @@ function parseIndex() { } } - // category + // categories const categoryName = item.group.title || 'Other' const categoryCode = categoryName.toLowerCase() if(categories[categoryCode]) {