From 28564bc2773a28271fe20d751aaf1ebd5668e17f Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Sat, 2 Dec 2023 18:44:42 +0300 Subject: [PATCH] Rename astro.com.my to content.astro.com.my --- sites/astro.com.my/astro.com.my.channels.xml | 160 ------------------ sites/astro.com.my/readme.md | 21 --- .../__data__/content.json | 0 .../__data__/no_content.html | 0 .../__data__/program.json | 0 .../content.astro.com.my.channels.xml | 160 ++++++++++++++++++ .../content.astro.com.my.config.js} | 2 +- .../content.astro.com.my.test.js} | 2 +- sites/content.astro.com.my/readme.md | 21 +++ 9 files changed, 183 insertions(+), 183 deletions(-) delete mode 100644 sites/astro.com.my/astro.com.my.channels.xml delete mode 100644 sites/astro.com.my/readme.md rename sites/{astro.com.my => content.astro.com.my}/__data__/content.json (100%) rename sites/{astro.com.my => content.astro.com.my}/__data__/no_content.html (100%) rename sites/{astro.com.my => content.astro.com.my}/__data__/program.json (100%) create mode 100644 sites/content.astro.com.my/content.astro.com.my.channels.xml rename sites/{astro.com.my/astro.com.my.config.js => content.astro.com.my/content.astro.com.my.config.js} (95%) rename sites/{astro.com.my/astro.com.my.test.js => content.astro.com.my/content.astro.com.my.test.js} (93%) create mode 100644 sites/content.astro.com.my/readme.md diff --git a/sites/astro.com.my/astro.com.my.channels.xml b/sites/astro.com.my/astro.com.my.channels.xml deleted file mode 100644 index 8c8dd0c4..00000000 --- a/sites/astro.com.my/astro.com.my.channels.xml +++ /dev/null @@ -1,160 +0,0 @@ - - - ERA FM - MY FM - OPUS - HITZ FM - MIX FM - LITE FM - CLASSIC ROCK - GOLD - THR GEGAR - INDIA BEAT - JAZZ - NAS FM - SINAR FM - OSAI - MELODY FM - V FM - THR RAAGA - BAYU - KENYALANG - WAI FM - ZAYAN - GOXUAN - AI FM - ASYIK FM - MINNAL FM - TRAXX FM - Smithsonian Channel - BBC Brit HD - ABC Australia HD - TV Okey HD - Love Nature 4K - SPOTV2 - Sun Life - KTV - Sun News - CBeebies - Global Trekker - Love Nature - DreamWorks - Arena Bola - Arena Bola 2 - Zee Cinema - TVB Magic - W-Sport - Astro Premier - 8TV - Adithya - Al Jazeera English HD - Animal Planet HD - Asian Food Network HD - Astro AEC HD - Astro AOD 311 - Astro AOD 352 - Astro AOD 354 - Astro Arena 2 HD - Astro Arena HD - Astro Aura HD - Astro Awani HD - ABO Movies Thangathirai HD - Astro Ceria HD - Astro Citra HD - Astro Cricket HD - Astro Hua Hee Dai HD - Astro Oasis HD - Astro Prima HD - Astro QJ - Astro Rania HD - Astro Ria HD - Astro SuperSport 2 HD - Astro SuperSport 3 HD - Astro SuperSport 4 HD - Astro SuperSport HD - Astro Tutor TV - Astro SuperSport UHD 1 - Astro Vaanavil HD - Astro Vellithirai HD - Astro Vinmeen HD - Astro Wah Lai Toi HD - Astro Warna HD - Awesome TV - AXN HD - BBC Earth - BBC First HD - BBC Lifestyle HD - BBC News HD - beIN Sports 2 - beIN Sports 3 - beIN Sports HD - BERNAMA - Bloomberg TV HD - BOO HD - Cartoon Network HD - Celestial Classic Movies - CCTV4 HD - Celestial Movies HD - CGTN HD - CINEMAX HD - CNA HD - CNBC Asia HD - CNN HD - Colors Hindi HD - Colors Tamil HD - Crime & Investigation HD - CTI Asia HD - Discovery Asia HD - Discovery Channel HD - DMAX HD - DW English - TVB Entertainment News HD - Eurosport HD - Food Network HD - France24 - Golf Channel HD - HBO HD - HBO Family - HBO Hits - HGTV HD - History HD - HITS HD - HITS Movies HD - iQIYI HD - TVB Jade - KBS World HD - K-Plus HD - Lifetime HD - Moonbug - MTV Live - NHK World Premium - Nickelodeon HD - Nick Jr. - NTV7 - ONE HD - Paramount Network - Phoenix Chinese Channel HD - Phoenix Info News HD - Premier Sports - SHOWCASE - Sky News HD - SPOTV - Star Vijay HD - Sun Music HD - SUN TV HD - TLC HD - TV1 HD - TV2 HD - TV3 - TV9 - Al-Hijrah - TVB Classic HD - TVBS Asia HD - TVB Xing He HD - tvN HD - tvN Movies HD - TVS - Warner TV HD - WWE Network HD - Zee Tamil HD - diff --git a/sites/astro.com.my/readme.md b/sites/astro.com.my/readme.md deleted file mode 100644 index dfc71e4a..00000000 --- a/sites/astro.com.my/readme.md +++ /dev/null @@ -1,21 +0,0 @@ -# astro.com.my - -https://content.astro.com.my/ - -### Download the guide - -```sh -npm run grab -- --site=astro.com.my -``` - -### Update channel list - -```sh -npm run channels:parse -- --config=./sites/astro.com.my/astro.com.my.config.js --output=./sites/astro.com.my/astro.com.my.channels.xml -``` - -### Test - -```sh -npm test -- astro.com.my -``` diff --git a/sites/astro.com.my/__data__/content.json b/sites/content.astro.com.my/__data__/content.json similarity index 100% rename from sites/astro.com.my/__data__/content.json rename to sites/content.astro.com.my/__data__/content.json diff --git a/sites/astro.com.my/__data__/no_content.html b/sites/content.astro.com.my/__data__/no_content.html similarity index 100% rename from sites/astro.com.my/__data__/no_content.html rename to sites/content.astro.com.my/__data__/no_content.html diff --git a/sites/astro.com.my/__data__/program.json b/sites/content.astro.com.my/__data__/program.json similarity index 100% rename from sites/astro.com.my/__data__/program.json rename to sites/content.astro.com.my/__data__/program.json diff --git a/sites/content.astro.com.my/content.astro.com.my.channels.xml b/sites/content.astro.com.my/content.astro.com.my.channels.xml new file mode 100644 index 00000000..96a3379c --- /dev/null +++ b/sites/content.astro.com.my/content.astro.com.my.channels.xml @@ -0,0 +1,160 @@ + + + ERA FM + MY FM + OPUS + HITZ FM + MIX FM + LITE FM + CLASSIC ROCK + GOLD + THR GEGAR + INDIA BEAT + JAZZ + NAS FM + SINAR FM + OSAI + MELODY FM + V FM + THR RAAGA + BAYU + KENYALANG + WAI FM + ZAYAN + GOXUAN + AI FM + ASYIK FM + MINNAL FM + TRAXX FM + Smithsonian Channel + BBC Brit HD + ABC Australia HD + TV Okey HD + Love Nature 4K + SPOTV2 + Sun Life + KTV + Sun News + CBeebies + Global Trekker + Love Nature + DreamWorks + Arena Bola + Arena Bola 2 + Zee Cinema + TVB Magic + W-Sport + Astro Premier + 8TV + Adithya + Al Jazeera English HD + Animal Planet HD + Asian Food Network HD + Astro AEC HD + Astro AOD 311 + Astro AOD 352 + Astro AOD 354 + Astro Arena 2 HD + Astro Arena HD + Astro Aura HD + Astro Awani HD + ABO Movies Thangathirai HD + Astro Ceria HD + Astro Citra HD + Astro Cricket HD + Astro Hua Hee Dai HD + Astro Oasis HD + Astro Prima HD + Astro QJ + Astro Rania HD + Astro Ria HD + Astro SuperSport 2 HD + Astro SuperSport 3 HD + Astro SuperSport 4 HD + Astro SuperSport HD + Astro Tutor TV + Astro SuperSport UHD 1 + Astro Vaanavil HD + Astro Vellithirai HD + Astro Vinmeen HD + Astro Wah Lai Toi HD + Astro Warna HD + Awesome TV + AXN HD + BBC Earth + BBC First HD + BBC Lifestyle HD + BBC News HD + beIN Sports 2 + beIN Sports 3 + beIN Sports HD + BERNAMA + Bloomberg TV HD + BOO HD + Cartoon Network HD + Celestial Classic Movies + CCTV4 HD + Celestial Movies HD + CGTN HD + CINEMAX HD + CNA HD + CNBC Asia HD + CNN HD + Colors Hindi HD + Colors Tamil HD + Crime & Investigation HD + CTI Asia HD + Discovery Asia HD + Discovery Channel HD + DMAX HD + DW English + TVB Entertainment News HD + Eurosport HD + Food Network HD + France24 + Golf Channel HD + HBO HD + HBO Family + HBO Hits + HGTV HD + History HD + HITS HD + HITS Movies HD + iQIYI HD + TVB Jade + KBS World HD + K-Plus HD + Lifetime HD + Moonbug + MTV Live + NHK World Premium + Nickelodeon HD + Nick Jr. + NTV7 + ONE HD + Paramount Network + Phoenix Chinese Channel HD + Phoenix Info News HD + Premier Sports + SHOWCASE + Sky News HD + SPOTV + Star Vijay HD + Sun Music HD + SUN TV HD + TLC HD + TV1 HD + TV2 HD + TV3 + TV9 + Al-Hijrah + TVB Classic HD + TVBS Asia HD + TVB Xing He HD + tvN HD + tvN Movies HD + TVS + Warner TV HD + WWE Network HD + Zee Tamil HD + diff --git a/sites/astro.com.my/astro.com.my.config.js b/sites/content.astro.com.my/content.astro.com.my.config.js similarity index 95% rename from sites/astro.com.my/astro.com.my.config.js rename to sites/content.astro.com.my/content.astro.com.my.config.js index 58f8f393..1345db9f 100644 --- a/sites/astro.com.my/astro.com.my.config.js +++ b/sites/content.astro.com.my/content.astro.com.my.config.js @@ -7,7 +7,7 @@ dayjs.extend(utc) const API_ENDPOINT = 'https://contenthub-api.eco.astro.com.my' module.exports = { - site: 'astro.com.my', + site: 'content.astro.com.my', days: 2, url: function ({ channel }) { return `${API_ENDPOINT}/channel/${channel.site_id}.json` diff --git a/sites/astro.com.my/astro.com.my.test.js b/sites/content.astro.com.my/content.astro.com.my.test.js similarity index 93% rename from sites/astro.com.my/astro.com.my.test.js rename to sites/content.astro.com.my/content.astro.com.my.test.js index 6dbfa9e9..00fd5601 100644 --- a/sites/astro.com.my/astro.com.my.test.js +++ b/sites/content.astro.com.my/content.astro.com.my.test.js @@ -1,4 +1,4 @@ -const { parser, url } = require('./astro.com.my.config.js') +const { parser, url } = require('./content.astro.com.my.config.js') const fs = require('fs') const path = require('path') const axios = require('axios') diff --git a/sites/content.astro.com.my/readme.md b/sites/content.astro.com.my/readme.md new file mode 100644 index 00000000..9bb0d703 --- /dev/null +++ b/sites/content.astro.com.my/readme.md @@ -0,0 +1,21 @@ +# content.astro.com.my + +https://content.astro.com.my/ + +### Download the guide + +```sh +npm run grab -- --site=content.astro.com.my +``` + +### Update channel list + +```sh +npm run channels:parse -- --config=./sites/content.astro.com.my/content.astro.com.my.config.js --output=./sites/content.astro.com.my/content.astro.com.my.channels.xml +``` + +### Test + +```sh +npm test -- content.astro.com.my +```