From 37d278e1f1709bdf113c8173a5db28bafcc42249 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 12 Aug 2021 07:24:00 +0300 Subject: [PATCH 1/5] 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 e4a96489c..5fa324039 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` }) } From 01453e702e239d3282c27aa2da3a509146b3b7ef Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 12 Aug 2021 07:25:13 +0300 Subject: [PATCH 2/5] Create .gitignore --- .readme/.gitignore | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .readme/.gitignore diff --git a/.readme/.gitignore b/.readme/.gitignore new file mode 100644 index 000000000..778ddef3c --- /dev/null +++ b/.readme/.gitignore @@ -0,0 +1,3 @@ +_categories.md +_countries.md +_languages.md \ No newline at end of file From 80a29be5828963e23e2ed3ee0bee1450c566ea7a Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 12 Aug 2021 07:30:11 +0300 Subject: [PATCH 3/5] Update .gitignore --- .gitignore | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/.gitignore b/.gitignore index e2d711156..b512c09d4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,12 +1 @@ -node_modules/ -error.log -helpers/categories.md -helpers/countries.md - -# IDE -*.sublime-project -*.sublime-workspace -.idea - -# OS -.DS_Store +node_modules \ No newline at end of file From 174faeb737a2f60bbfa550ee1c298495129ed013 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 12 Aug 2021 07:52:19 +0300 Subject: [PATCH 4/5] Update template.md --- .readme/template.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.readme/template.md b/.readme/template.md index 0b0df4af7..c6b724862 100644 --- a/.readme/template.md +++ b/.readme/template.md @@ -1,7 +1,6 @@ # IPTV -![auto-update](https://github.com/iptv-org/iptv/actions/workflows/auto-update.yml/badge.svg) -![clean](https://github.com/iptv-org/iptv/actions/workflows/clean.yml/badge.svg) +[![auto-update](https://github.com/iptv-org/iptv/actions/workflows/auto-update.yml/badge.svg)](https://github.com/iptv-org/iptv/actions/workflows/auto-update.yml) Collection of publicly available IPTV channels from all over the world. From d4acf171cc3aa47bd190684991fbf31e1ebad3d2 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 12 Aug 2021 11:57:54 +0300 Subject: [PATCH 5/5] Update sort.js --- scripts/sort.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/sort.js b/scripts/sort.js index 974f2592c..17560b848 100644 --- a/scripts/sort.js +++ b/scripts/sort.js @@ -21,7 +21,7 @@ async function main() { async function sortChannels(playlist) { const channels = [...playlist.channels] - utils.sortBy(channels, ['name', 'url']) + utils.sortBy(channels, ['name', 'status', 'url']) if (JSON.stringify(channels) !== JSON.stringify(playlist.channels)) { log.print('updated')