From 37d278e1f1709bdf113c8173a5db28bafcc42249 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 12 Aug 2021 07:24:00 +0300 Subject: [PATCH] Update update-readme.js --- scripts/update-readme.js | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/scripts/update-readme.js b/scripts/update-readme.js index e4a96489c9..5fa324039a 100644 --- a/scripts/update-readme.js +++ b/scripts/update-readme.js @@ -25,7 +25,7 @@ function generateCategoriesTable() { for (const category of [...db.categories.all(), { name: 'Other', id: 'other' }]) { categories.push({ category: category.name, - channels: db.channels.forCategory(category).removeDuplicates().count(), + channels: db.channels.forCategory(category).removeOffline().removeDuplicates().count(), playlist: `https://iptv-org.github.io/iptv/categories/${category.id}.m3u` }) } @@ -53,7 +53,12 @@ function generateCountriesTable() { const prefix = flag ? `${flag} ` : '' countries.push({ country: prefix + country.name, - channels: db.channels.forCountry(country).removeDuplicates().removeNSFW().count(), + channels: db.channels + .forCountry(country) + .removeOffline() + .removeDuplicates() + .removeNSFW() + .count(), playlist: `https://iptv-org.github.io/iptv/countries/${country.code}.m3u` }) } @@ -79,7 +84,12 @@ function generateLanguagesTable() { ]) { languages.push({ language: language.name, - channels: db.channels.forLanguage(language).removeDuplicates().removeNSFW().count(), + channels: db.channels + .forLanguage(language) + .removeOffline() + .removeDuplicates() + .removeNSFW() + .count(), playlist: `https://iptv-org.github.io/iptv/languages/${language.code}.m3u` }) }