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
`
})
}