From 9f9151be3d20610bf5316b6856a2cba0ffca4471 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Wed, 24 Aug 2022 22:41:58 +0300 Subject: [PATCH 01/11] Update tests/__data__ --- tests/__data__/expected/_readme.md | 6 ++---- tests/__data__/expected/api/guides.json | 2 +- .../expected/guides/bh/chaines-tv.orange.fr.epg.xml | 5 ----- ...ge.fr.epg.xml.gz => chaines-tv.orange.fr.xml.gz} | Bin .../expected/guides/fr/chaines-tv.orange.fr.epg.xml | 5 ----- ...ge.fr.epg.xml.gz => chaines-tv.orange.fr.xml.gz} | Bin .../__data__/expected/guides/ge/magticom.ge.epg.xml | 3 --- .../{magticom.ge.epg.xml.gz => magticom.ge.xml.gz} | Bin tests/__data__/expected/guides/ru/yandex.ru.epg.xml | 2 -- .../ru/{yandex.ru.epg.xml.gz => yandex.ru.xml.gz} | Bin .../__data__/expected/guides/us/directv.com.epg.xml | 2 -- .../{directv.com.epg.xml.gz => directv.com.xml.gz} | Bin tests/__data__/expected/guides/zw/dstv.com.epg.xml | 4 ---- .../zw/{dstv.com.epg.xml.gz => dstv.com.xml.gz} | Bin 14 files changed, 3 insertions(+), 26 deletions(-) delete mode 100644 tests/__data__/expected/guides/bh/chaines-tv.orange.fr.epg.xml rename tests/__data__/expected/guides/bh/{chaines-tv.orange.fr.epg.xml.gz => chaines-tv.orange.fr.xml.gz} (100%) delete mode 100644 tests/__data__/expected/guides/fr/chaines-tv.orange.fr.epg.xml rename tests/__data__/expected/guides/fr/{chaines-tv.orange.fr.epg.xml.gz => chaines-tv.orange.fr.xml.gz} (100%) delete mode 100644 tests/__data__/expected/guides/ge/magticom.ge.epg.xml rename tests/__data__/expected/guides/ge/{magticom.ge.epg.xml.gz => magticom.ge.xml.gz} (100%) delete mode 100644 tests/__data__/expected/guides/ru/yandex.ru.epg.xml rename tests/__data__/expected/guides/ru/{yandex.ru.epg.xml.gz => yandex.ru.xml.gz} (100%) delete mode 100644 tests/__data__/expected/guides/us/directv.com.epg.xml rename tests/__data__/expected/guides/us/{directv.com.epg.xml.gz => directv.com.xml.gz} (100%) delete mode 100644 tests/__data__/expected/guides/zw/dstv.com.epg.xml rename tests/__data__/expected/guides/zw/{dstv.com.epg.xml.gz => dstv.com.xml.gz} (100%) diff --git a/tests/__data__/expected/_readme.md b/tests/__data__/expected/_readme.md index c0f5df2f..3e1a1ae7 100644 --- a/tests/__data__/expected/_readme.md +++ b/tests/__data__/expected/_readme.md @@ -12,13 +12,11 @@ To load a program guide, all you need to do is copy the link to one or more of t Country                         ChannelsEPGStatus                                                    - 🇨🇦 Canada2https://iptv-org.github.io/epg/guides/ca-en/example.com.epg.xmlexample.com - 1https://iptv-org.github.io/epg/guides/ca-ru/example.com.epg.xmlexample.com + 🇨🇦 Canada2https://iptv-org.github.io/epg/guides/ca-en/example.com.xml.gzexample.com + 1https://iptv-org.github.io/epg/guides/ca-ru/example.com.xml.gzexample.com -To use a compressed version of the files, add `.gz` to the end of the filename. - ## API The API documentation can be found in the [iptv-org/api](https://github.com/iptv-org/api) repository. diff --git a/tests/__data__/expected/api/guides.json b/tests/__data__/expected/api/guides.json index e016b25e..875dea7c 100644 --- a/tests/__data__/expected/api/guides.json +++ b/tests/__data__/expected/api/guides.json @@ -1 +1 @@ -[{"channel":"CNNInternationalEurope.us","site":"example.com","lang":"en","url":"https://iptv-org.github.io/epg/guides/ca-en/example.com.epg.xml"},{"channel":"CNNInternationalEurope.us","site":"example.com","lang":"ru","url":"https://iptv-org.github.io/epg/guides/ca-ru/example.com.epg.xml"},{"channel":"CNNInternationalEurope2.us","site":"example.com","lang":"en","url":"https://iptv-org.github.io/epg/guides/ca-en/example.com.epg.xml"}] \ No newline at end of file +[{"channel":"CNNInternationalEurope.us","site":"example.com","lang":"en","url":"https://iptv-org.github.io/epg/guides/ca-en/example.com.xml.gz"},{"channel":"CNNInternationalEurope.us","site":"example.com","lang":"ru","url":"https://iptv-org.github.io/epg/guides/ca-ru/example.com.xml.gz"},{"channel":"CNNInternationalEurope2.us","site":"example.com","lang":"en","url":"https://iptv-org.github.io/epg/guides/ca-en/example.com.xml.gz"}] \ No newline at end of file diff --git a/tests/__data__/expected/guides/bh/chaines-tv.orange.fr.epg.xml b/tests/__data__/expected/guides/bh/chaines-tv.orange.fr.epg.xml deleted file mode 100644 index 61118187..00000000 --- a/tests/__data__/expected/guides/bh/chaines-tv.orange.fr.epg.xml +++ /dev/null @@ -1,5 +0,0 @@ - -CNN Internationalhttps://chaines-tv.orange.fr -World SportВсе о главных спортивных событиях мира. Обзоры самых важных спортивных событий, аналитика, мнения экспертов. -Connecting Africa. 114-я серия114-я серия. Проект, рассказывающий о людях и компаниях, которые совершают революцию в африканском бизнесе, и о тех, кто объединяет континент, выступая за свободную торговлю в Африке. - \ No newline at end of file diff --git a/tests/__data__/expected/guides/bh/chaines-tv.orange.fr.epg.xml.gz b/tests/__data__/expected/guides/bh/chaines-tv.orange.fr.xml.gz similarity index 100% rename from tests/__data__/expected/guides/bh/chaines-tv.orange.fr.epg.xml.gz rename to tests/__data__/expected/guides/bh/chaines-tv.orange.fr.xml.gz diff --git a/tests/__data__/expected/guides/fr/chaines-tv.orange.fr.epg.xml b/tests/__data__/expected/guides/fr/chaines-tv.orange.fr.epg.xml deleted file mode 100644 index 61118187..00000000 --- a/tests/__data__/expected/guides/fr/chaines-tv.orange.fr.epg.xml +++ /dev/null @@ -1,5 +0,0 @@ - -CNN Internationalhttps://chaines-tv.orange.fr -World SportВсе о главных спортивных событиях мира. Обзоры самых важных спортивных событий, аналитика, мнения экспертов. -Connecting Africa. 114-я серия114-я серия. Проект, рассказывающий о людях и компаниях, которые совершают революцию в африканском бизнесе, и о тех, кто объединяет континент, выступая за свободную торговлю в Африке. - \ No newline at end of file diff --git a/tests/__data__/expected/guides/fr/chaines-tv.orange.fr.epg.xml.gz b/tests/__data__/expected/guides/fr/chaines-tv.orange.fr.xml.gz similarity index 100% rename from tests/__data__/expected/guides/fr/chaines-tv.orange.fr.epg.xml.gz rename to tests/__data__/expected/guides/fr/chaines-tv.orange.fr.xml.gz diff --git a/tests/__data__/expected/guides/ge/magticom.ge.epg.xml b/tests/__data__/expected/guides/ge/magticom.ge.epg.xml deleted file mode 100644 index 9a4ed48e..00000000 --- a/tests/__data__/expected/guides/ge/magticom.ge.epg.xml +++ /dev/null @@ -1,3 +0,0 @@ - -CNN Internationalhttps://magticom.ge - \ No newline at end of file diff --git a/tests/__data__/expected/guides/ge/magticom.ge.epg.xml.gz b/tests/__data__/expected/guides/ge/magticom.ge.xml.gz similarity index 100% rename from tests/__data__/expected/guides/ge/magticom.ge.epg.xml.gz rename to tests/__data__/expected/guides/ge/magticom.ge.xml.gz diff --git a/tests/__data__/expected/guides/ru/yandex.ru.epg.xml b/tests/__data__/expected/guides/ru/yandex.ru.epg.xml deleted file mode 100644 index d396a1df..00000000 --- a/tests/__data__/expected/guides/ru/yandex.ru.epg.xml +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/tests/__data__/expected/guides/ru/yandex.ru.epg.xml.gz b/tests/__data__/expected/guides/ru/yandex.ru.xml.gz similarity index 100% rename from tests/__data__/expected/guides/ru/yandex.ru.epg.xml.gz rename to tests/__data__/expected/guides/ru/yandex.ru.xml.gz diff --git a/tests/__data__/expected/guides/us/directv.com.epg.xml b/tests/__data__/expected/guides/us/directv.com.epg.xml deleted file mode 100644 index d396a1df..00000000 --- a/tests/__data__/expected/guides/us/directv.com.epg.xml +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/tests/__data__/expected/guides/us/directv.com.epg.xml.gz b/tests/__data__/expected/guides/us/directv.com.xml.gz similarity index 100% rename from tests/__data__/expected/guides/us/directv.com.epg.xml.gz rename to tests/__data__/expected/guides/us/directv.com.xml.gz diff --git a/tests/__data__/expected/guides/zw/dstv.com.epg.xml b/tests/__data__/expected/guides/zw/dstv.com.epg.xml deleted file mode 100644 index efb0e0ab..00000000 --- a/tests/__data__/expected/guides/zw/dstv.com.epg.xml +++ /dev/null @@ -1,4 +0,0 @@ - -M-Net Movies 2https://dstv.com -Robin Hood8.256.0/1S09E257 - \ No newline at end of file diff --git a/tests/__data__/expected/guides/zw/dstv.com.epg.xml.gz b/tests/__data__/expected/guides/zw/dstv.com.xml.gz similarity index 100% rename from tests/__data__/expected/guides/zw/dstv.com.epg.xml.gz rename to tests/__data__/expected/guides/zw/dstv.com.xml.gz From f6676e05c86f8134f085d369566d6b93d8b6b1ee Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Wed, 24 Aug 2022 22:42:07 +0300 Subject: [PATCH 02/11] Update update.test.js --- tests/commands/guides/update.test.js | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/tests/commands/guides/update.test.js b/tests/commands/guides/update.test.js index ce60208e..9111ac0f 100644 --- a/tests/commands/guides/update.test.js +++ b/tests/commands/guides/update.test.js @@ -21,14 +21,6 @@ it('can generate /guides', () => { { encoding: 'utf8' } ) - const guides = glob - .sync('tests/__data__/expected/guides/**/*.xml') - .map(f => f.replace('tests/__data__/expected/', '')) - - guides.forEach(filepath => { - expect(content(`output/${filepath}`), filepath).toBe(content(`expected/${filepath}`)) - }) - const compressed = glob .sync('tests/__data__/expected/guides/**/*.xml.gz') .map(f => f.replace('tests/__data__/expected/', '')) @@ -58,12 +50,12 @@ it('will terminate process if programs not found', () => { Generating guides/... Loading \"database/programs.db\"... Loading queue... -Creating \"tests/__data__/output/guides/us/directv.com.epg.xml\"... -Creating \"tests/__data__/output/guides/fr/chaines-tv.orange.fr.epg.xml\"... -Creating \"tests/__data__/output/guides/bh/chaines-tv.orange.fr.epg.xml\"... -Creating \"tests/__data__/output/guides/ge/magticom.ge.epg.xml\"... -Creating \"tests/__data__/output/guides/ru/yandex.ru.epg.xml\"... -Creating \"tests/__data__/output/guides/zw/dstv.com.epg.xml\"... +Creating \"tests/__data__/output/guides/us/directv.com.xml.gz\"... +Creating \"tests/__data__/output/guides/fr/chaines-tv.orange.fr.xml.gz\"... +Creating \"tests/__data__/output/guides/bh/chaines-tv.orange.fr.xml.gz\"... +Creating \"tests/__data__/output/guides/ge/magticom.ge.xml.gz\"... +Creating \"tests/__data__/output/guides/ru/yandex.ru.xml.gz\"... +Creating \"tests/__data__/output/guides/zw/dstv.com.xml.gz\"... Error: No programs found `) From e1bc1307acae5bc408f0ea91a95a8ea06ebcd29b Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Wed, 24 Aug 2022 22:43:58 +0300 Subject: [PATCH 03/11] Update update.js --- scripts/commands/guides/update.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/commands/guides/update.js b/scripts/commands/guides/update.js index 59e624a5..60edf5cb 100644 --- a/scripts/commands/guides/update.js +++ b/scripts/commands/guides/update.js @@ -31,12 +31,11 @@ async function main() { channels = Object.values(channels) channels = _.sortBy(channels, 'id') - const filepath = `${PUBLIC_DIR}/guides/${key}.epg.xml` + const filepath = `${PUBLIC_DIR}/guides/${key}.xml.gz` logger.info(`Creating "${filepath}"...`) - const output = generateXMLTV({ channels, programs, date: CURR_DATE }) - await file.create(filepath, output) - const compressed = await zip.compress(output) - await file.create(filepath + '.gz', compressed) + const xmltv = generateXMLTV({ channels, programs, date: CURR_DATE }) + const compressed = await zip.compress(xmltv) + await file.create(filepath, compressed) } if (!total) { From f5cf9cb8e9ee4be0ca2c9b5eb582ea890a97e33d Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Wed, 24 Aug 2022 22:44:01 +0300 Subject: [PATCH 04/11] Update update.js --- scripts/commands/api/update.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/commands/api/update.js b/scripts/commands/api/update.js index e705db67..4cfcf11e 100644 --- a/scripts/commands/api/update.js +++ b/scripts/commands/api/update.js @@ -24,7 +24,7 @@ async function main() { channel: channel.id, site: channel.site, lang: channel.lang, - url: `https://iptv-org.github.io/epg/guides/${suffix}/${site}.epg.xml` + url: `https://iptv-org.github.io/epg/guides/${suffix}/${site}.xml.gz` }) } } catch (err) { From 04506c9b39ee17af635ed2f9b34ab290522ecd81 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Wed, 24 Aug 2022 22:44:07 +0300 Subject: [PATCH 05/11] Update update.js --- scripts/commands/readme/update.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/commands/readme/update.js b/scripts/commands/readme/update.js index 18f47c52..66d00f15 100644 --- a/scripts/commands/readme/update.js +++ b/scripts/commands/readme/update.js @@ -55,7 +55,7 @@ async function generateCountriesTable(items = []) { flag: country.flag, name: country.name, channels: item.count, - epg: `https://iptv-org.github.io/epg/guides/${item.group}.epg.xml`, + epg: `https://iptv-org.github.io/epg/guides/${item.group}.xml.gz`, status: `${item.site}` }) } From 7286b409ddaf30e4009ec5ef0c4d4c12f3626f10 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Wed, 24 Aug 2022 22:44:10 +0300 Subject: [PATCH 06/11] Update template.md --- .readme/template.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/.readme/template.md b/.readme/template.md index 6ad25984..9dc85d98 100644 --- a/.readme/template.md +++ b/.readme/template.md @@ -9,8 +9,6 @@ To load a program guide, all you need to do is copy the link to one or more of t #include "./.readme/_countries.md" -To use a compressed version of the files, add `.gz` to the end of the filename. - ## API The API documentation can be found in the [iptv-org/api](https://github.com/iptv-org/api) repository. From 48f60b4775c97427396c9fbc7bde2e6b9aa2a35f Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 25 Aug 2022 00:08:41 +0300 Subject: [PATCH 07/11] Update tests/__data__ --- tests/__data__/expected/_readme.md | 4 ++-- tests/__data__/expected/api/guides.json | 2 +- ...ge.fr.xml.gz => chaines-tv.orange.fr.epg.xml.gz} | Bin ...ge.fr.xml.gz => chaines-tv.orange.fr.epg.xml.gz} | Bin .../{magticom.ge.xml.gz => magticom.ge.epg.xml.gz} | Bin .../ru/{yandex.ru.xml.gz => yandex.ru.epg.xml.gz} | Bin .../{directv.com.xml.gz => directv.com.epg.xml.gz} | Bin .../zw/{dstv.com.xml.gz => dstv.com.epg.xml.gz} | Bin 8 files changed, 3 insertions(+), 3 deletions(-) rename tests/__data__/expected/guides/bh/{chaines-tv.orange.fr.xml.gz => chaines-tv.orange.fr.epg.xml.gz} (100%) rename tests/__data__/expected/guides/fr/{chaines-tv.orange.fr.xml.gz => chaines-tv.orange.fr.epg.xml.gz} (100%) rename tests/__data__/expected/guides/ge/{magticom.ge.xml.gz => magticom.ge.epg.xml.gz} (100%) rename tests/__data__/expected/guides/ru/{yandex.ru.xml.gz => yandex.ru.epg.xml.gz} (100%) rename tests/__data__/expected/guides/us/{directv.com.xml.gz => directv.com.epg.xml.gz} (100%) rename tests/__data__/expected/guides/zw/{dstv.com.xml.gz => dstv.com.epg.xml.gz} (100%) diff --git a/tests/__data__/expected/_readme.md b/tests/__data__/expected/_readme.md index 3e1a1ae7..1f392846 100644 --- a/tests/__data__/expected/_readme.md +++ b/tests/__data__/expected/_readme.md @@ -12,8 +12,8 @@ To load a program guide, all you need to do is copy the link to one or more of t Country                         ChannelsEPGStatus                                                    - 🇨🇦 Canada2https://iptv-org.github.io/epg/guides/ca-en/example.com.xml.gzexample.com - 1https://iptv-org.github.io/epg/guides/ca-ru/example.com.xml.gzexample.com + 🇨🇦 Canada2https://iptv-org.github.io/epg/guides/ca-en/example.com.epg.xml.gzexample.com + 1https://iptv-org.github.io/epg/guides/ca-ru/example.com.epg.xml.gzexample.com diff --git a/tests/__data__/expected/api/guides.json b/tests/__data__/expected/api/guides.json index 875dea7c..fdf08bc4 100644 --- a/tests/__data__/expected/api/guides.json +++ b/tests/__data__/expected/api/guides.json @@ -1 +1 @@ -[{"channel":"CNNInternationalEurope.us","site":"example.com","lang":"en","url":"https://iptv-org.github.io/epg/guides/ca-en/example.com.xml.gz"},{"channel":"CNNInternationalEurope.us","site":"example.com","lang":"ru","url":"https://iptv-org.github.io/epg/guides/ca-ru/example.com.xml.gz"},{"channel":"CNNInternationalEurope2.us","site":"example.com","lang":"en","url":"https://iptv-org.github.io/epg/guides/ca-en/example.com.xml.gz"}] \ No newline at end of file +[{"channel":"CNNInternationalEurope.us","site":"example.com","lang":"en","url":"https://iptv-org.github.io/epg/guides/ca-en/example.com.epg.xml.gz"},{"channel":"CNNInternationalEurope.us","site":"example.com","lang":"ru","url":"https://iptv-org.github.io/epg/guides/ca-ru/example.com.epg.xml.gz"},{"channel":"CNNInternationalEurope2.us","site":"example.com","lang":"en","url":"https://iptv-org.github.io/epg/guides/ca-en/example.com.epg.xml.gz"}] \ No newline at end of file diff --git a/tests/__data__/expected/guides/bh/chaines-tv.orange.fr.xml.gz b/tests/__data__/expected/guides/bh/chaines-tv.orange.fr.epg.xml.gz similarity index 100% rename from tests/__data__/expected/guides/bh/chaines-tv.orange.fr.xml.gz rename to tests/__data__/expected/guides/bh/chaines-tv.orange.fr.epg.xml.gz diff --git a/tests/__data__/expected/guides/fr/chaines-tv.orange.fr.xml.gz b/tests/__data__/expected/guides/fr/chaines-tv.orange.fr.epg.xml.gz similarity index 100% rename from tests/__data__/expected/guides/fr/chaines-tv.orange.fr.xml.gz rename to tests/__data__/expected/guides/fr/chaines-tv.orange.fr.epg.xml.gz diff --git a/tests/__data__/expected/guides/ge/magticom.ge.xml.gz b/tests/__data__/expected/guides/ge/magticom.ge.epg.xml.gz similarity index 100% rename from tests/__data__/expected/guides/ge/magticom.ge.xml.gz rename to tests/__data__/expected/guides/ge/magticom.ge.epg.xml.gz diff --git a/tests/__data__/expected/guides/ru/yandex.ru.xml.gz b/tests/__data__/expected/guides/ru/yandex.ru.epg.xml.gz similarity index 100% rename from tests/__data__/expected/guides/ru/yandex.ru.xml.gz rename to tests/__data__/expected/guides/ru/yandex.ru.epg.xml.gz diff --git a/tests/__data__/expected/guides/us/directv.com.xml.gz b/tests/__data__/expected/guides/us/directv.com.epg.xml.gz similarity index 100% rename from tests/__data__/expected/guides/us/directv.com.xml.gz rename to tests/__data__/expected/guides/us/directv.com.epg.xml.gz diff --git a/tests/__data__/expected/guides/zw/dstv.com.xml.gz b/tests/__data__/expected/guides/zw/dstv.com.epg.xml.gz similarity index 100% rename from tests/__data__/expected/guides/zw/dstv.com.xml.gz rename to tests/__data__/expected/guides/zw/dstv.com.epg.xml.gz From 960ec952aa52cca3daa633ad1a6d33fafb17d343 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 25 Aug 2022 00:08:53 +0300 Subject: [PATCH 08/11] Update update.test.js --- tests/commands/guides/update.test.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/commands/guides/update.test.js b/tests/commands/guides/update.test.js index 9111ac0f..f85848f9 100644 --- a/tests/commands/guides/update.test.js +++ b/tests/commands/guides/update.test.js @@ -22,7 +22,7 @@ it('can generate /guides', () => { ) const compressed = glob - .sync('tests/__data__/expected/guides/**/*.xml.gz') + .sync('tests/__data__/expected/guides/**/*.epg.xml.gz') .map(f => f.replace('tests/__data__/expected/', '')) compressed.forEach(filepath => { @@ -50,12 +50,12 @@ it('will terminate process if programs not found', () => { Generating guides/... Loading \"database/programs.db\"... Loading queue... -Creating \"tests/__data__/output/guides/us/directv.com.xml.gz\"... -Creating \"tests/__data__/output/guides/fr/chaines-tv.orange.fr.xml.gz\"... -Creating \"tests/__data__/output/guides/bh/chaines-tv.orange.fr.xml.gz\"... -Creating \"tests/__data__/output/guides/ge/magticom.ge.xml.gz\"... -Creating \"tests/__data__/output/guides/ru/yandex.ru.xml.gz\"... -Creating \"tests/__data__/output/guides/zw/dstv.com.xml.gz\"... +Creating \"tests/__data__/output/guides/us/directv.com.epg.xml.gz\"... +Creating \"tests/__data__/output/guides/fr/chaines-tv.orange.fr.epg.xml.gz\"... +Creating \"tests/__data__/output/guides/bh/chaines-tv.orange.fr.epg.xml.gz\"... +Creating \"tests/__data__/output/guides/ge/magticom.ge.epg.xml.gz\"... +Creating \"tests/__data__/output/guides/ru/yandex.ru.epg.xml.gz\"... +Creating \"tests/__data__/output/guides/zw/dstv.com.epg.xml.gz\"... Error: No programs found `) From b16bfea4275c69531bdffa6f7a52fa91a653a6a6 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 25 Aug 2022 00:09:02 +0300 Subject: [PATCH 09/11] Update update.js --- scripts/commands/guides/update.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/commands/guides/update.js b/scripts/commands/guides/update.js index 60edf5cb..304d4ccc 100644 --- a/scripts/commands/guides/update.js +++ b/scripts/commands/guides/update.js @@ -31,7 +31,7 @@ async function main() { channels = Object.values(channels) channels = _.sortBy(channels, 'id') - const filepath = `${PUBLIC_DIR}/guides/${key}.xml.gz` + const filepath = `${PUBLIC_DIR}/guides/${key}.epg.xml.gz` logger.info(`Creating "${filepath}"...`) const xmltv = generateXMLTV({ channels, programs, date: CURR_DATE }) const compressed = await zip.compress(xmltv) From 5507e9fe2a9cd33ef012bb441de14f68edaaf1ad Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 25 Aug 2022 00:09:04 +0300 Subject: [PATCH 10/11] Update update.js --- scripts/commands/api/update.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/commands/api/update.js b/scripts/commands/api/update.js index 4cfcf11e..f11afa47 100644 --- a/scripts/commands/api/update.js +++ b/scripts/commands/api/update.js @@ -24,7 +24,7 @@ async function main() { channel: channel.id, site: channel.site, lang: channel.lang, - url: `https://iptv-org.github.io/epg/guides/${suffix}/${site}.xml.gz` + url: `https://iptv-org.github.io/epg/guides/${suffix}/${site}.epg.xml.gz` }) } } catch (err) { From e16dfa7991b25b3fe2640c59534fdd3984f5d2f5 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 25 Aug 2022 00:09:07 +0300 Subject: [PATCH 11/11] Update update.js --- scripts/commands/readme/update.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/commands/readme/update.js b/scripts/commands/readme/update.js index 66d00f15..1afaf5d7 100644 --- a/scripts/commands/readme/update.js +++ b/scripts/commands/readme/update.js @@ -55,7 +55,7 @@ async function generateCountriesTable(items = []) { flag: country.flag, name: country.name, channels: item.count, - epg: `https://iptv-org.github.io/epg/guides/${item.group}.xml.gz`, + epg: `https://iptv-org.github.io/epg/guides/${item.group}.epg.xml.gz`, status: `${item.site}` }) }