diff --git a/sites/indihometv.com/indihometv.com.channels.xml b/sites/indihometv.com/indihometv.com.channels.xml index b1b4564a..26150990 100644 --- a/sites/indihometv.com/indihometv.com.channels.xml +++ b/sites/indihometv.com/indihometv.com.channels.xml @@ -1,41 +1,19 @@ - - - - - - - - - - - - - - - - - - - - - - ABC Australia Aljazeera Animax ANIPlus + Antara ANTV Arirang Asian Food Network ATV AXN - Baby First Bali TV beIN Sports 1 beIN Sports 3 - Berita Satu + BTV Bioskop Indonesia Bloomberg Boomerang @@ -45,7 +23,7 @@ CGTN Documentary Cinema World Citra Dangdut - Citra Drama + Citra Drama News Asia CNBC Asia CNBC Indonesia @@ -54,6 +32,7 @@ Crime Investigation CTI Asia Daai TV + Da Vinci Learning Discovery Channel Dreamworks Dunia anak @@ -61,20 +40,24 @@ DW (English) Eat N Go EBC Asia - egg network Euronews FashionTV Fight Sport + Flik France 24 + Formosa Galaxy Galaxy Premium + SGEM HGTV History + Hits + HITS Now Horee Horizon Sports IDX IMC - IndiKids + FunPlanet Indonesiana TV Indosiar iNews @@ -85,46 +68,42 @@ Kix Kompas TV Kplus + Kungfu TV Lifetime Lingua + Maxstream Mentari TV Metro TV - MNC News + SINDO News TV MQTV - M Shop - MTATV MTV Live My Cinema My Cinema Asia My Family MyKidz - Nat Geo - Nat Geo Wild NBA Net. NHK World Japan - NHK World Premium Nickelodeon Nick Junior Insert Nusantara TV - O Channel + MOJI SONE - Outdoor Channel Paramount - Rajawali TV + Prambors + AlQuran Kareem + RTV Rock Entertainment - Rock Extreme + Rock Action Rodja TV RRI NET - Ruang Trampil SCTV SEA Today Seru! - SPOTV + Shenzen SPOTV2 - Star Chinese Channel - Star Chinese Movies + SPOTV Tawaf TV Tech Storm Thrill @@ -135,16 +114,16 @@ TV5Monde TV9 NU TVBS News - TV Edukasi MUI TV TVN TVN Movies TV One TVRI UChannel - Usee Photo - UseePrime + AllPlay Ent + UseeSports2 + UseeSports Warner ZBioskop Zhejiang - \ No newline at end of file + diff --git a/sites/indihometv.com/indihometv.com.config.js b/sites/indihometv.com/indihometv.com.config.js index 57712c2c..5aecd215 100644 --- a/sites/indihometv.com/indihometv.com.config.js +++ b/sites/indihometv.com/indihometv.com.config.js @@ -38,6 +38,28 @@ module.exports = { }) return programs + }, + async channels() { + const axios = require('axios') + const cheerio = require('cheerio') + const data = await axios + .get('https://www.indihometv.com/tvod') + .then(response => response.data) + .catch(console.error) + + const $ = cheerio.load(data) + const items = $('#channelContainer a.channel-item').toArray() + const channels = items.map(item => { + const $item = $(item) + + return { + lang: 'id', + site_id: $item.data('url').substr($item.data('url').lastIndexOf('/') + 1), + name: $item.data('name') + } + }) + + return channels } }