diff --git a/sites/turksatkablo.com.tr/readme.md b/sites/turksatkablo.com.tr/readme.md new file mode 100644 index 00000000..cff7b41a --- /dev/null +++ b/sites/turksatkablo.com.tr/readme.md @@ -0,0 +1,21 @@ +# turksatkablo.com.tr + +https://www.turksatkablo.com.tr/yayin-akisi.aspx + +### Download the guide + +```sh +npm run grab -- --site=turksatkablo.com.tr +``` + +### Update channel list + +```sh +npm run channels:parse -- --config=./sites/turksatkablo.com.tr/turksatkablo.com.tr.config.js --output=./sites/turksatkablo.com.tr/turksatkablo.com.tr.channels.xml +``` + +### Test + +```sh +npm test -- turksatkablo.com.tr +``` diff --git a/sites/turksatkablo.com.tr/turksatkablo.com.tr.channels.xml b/sites/turksatkablo.com.tr/turksatkablo.com.tr.channels.xml index e4d2b7db..d675763b 100644 --- a/sites/turksatkablo.com.tr/turksatkablo.com.tr.channels.xml +++ b/sites/turksatkablo.com.tr/turksatkablo.com.tr.channels.xml @@ -1,151 +1,178 @@ - - - - 24 Kitchen Türkiye - 24 TV - 360 - 360 Tune Box - A2 - A Haber - Akit TV - Ala Too 24 - Aljazeera Channel - Aljazeera English - Saudi TV - A News - Animaux - A Para - Arirang World - A Spor - ATV Türkiye - Automoto la chaîne - Az TV - Baby TV Europe - BBC Entertainment Europe - BBC World News Europe - BBN Türk - BeIn Sports 1 Türkiye - BeIn Sports 2 Türkiye - BeIn Sports 3 Türkiye - BeIn Sports 4 Türkiye - BeIn Sports Haber - BeIn Sports Max 1 Türkiye - BeIn Sports Max 2 Türkiye - Bengü Türk - Beyaz TV - Beykent TV - Bloomberg HT - Bloomberg TV Europe - BRT 1 - Cartoon Network Türkiye - CCTV 4 Europe - CGTN - CGTN Documentary - Chasse & Pêche - CNN Türk - Da Vinci - Discovery Channel Türkiye - Disney Channel Türkiye - Diyanet TV - DMAX Türkiye - DocuBox HD - Dream Türk - Duck TV SD - DW Deutsch - DW English - EBA TV Ilkokul - EBA TV Lise - EBA TV Ortaokul - Edge Sport - Ekotürk - English Club TV - Eurosport 1 - Eurosport 2 - Fast & FunBox HD - FB TV - FightBox HD - FilmBox Türkiye - Flash TV - Fox Crime Türkiye - Fox Türkiye - France 24 English - France 24 Français - FunBox UHD - FX Türkiye - Gametoon - Haber Global - Habertürk - Hayat Plus - Investigation Discovery Europe - Kablo Info - Kanal 7 - Kanal B - Kanal D - KBS World - Kibris Genç TV - Kocaeli TV - Kon TV - Minika Çocuk - Minika Go - MyZen TV - National Geographic Türkiye - National Geographic Wild Türkiye - NBA TV - NHK World Japan - NTV - Quran TV - RTG International - Rossiya 24 - Science & Vie TV - Show TV - Sinema 1001 - Sinema 1002 - Sinema 2 - Sinema Aile - Sinema Aile 2 - Sinema Aksiyon - Sinema Aksiyon 2 - Sinema Komedi - Sinema Komedi 2 - Sinema TV - Sinema Yerli - Sinema Yerli 2 - S Sport - S Sport 2 - Star TV - Sunna TV - Teve 2 - TGRT Haber - TLC Türkiye - TMB - Trace Sport Stars - Trace Urban - Trek - TRT 1 - TRT 2 - TRT Arabi - TRT Avaz - TRT Belgesel - TRT Çocuk - TRT Haber - TRT Kurdî - TRT Müzik - TRT Spor - TRT Spor Yildiz - TRT Türk - TRT World - Türkmeneli TV - TV 100 - TV 5 Monde Europe - TV 8 - TV 8.5 - TV Net - UA TV - UçanKus TV - Ülke TV - Ulusal Kanal - Vav TV - Viasat Explore Türkiye - Viasat History HD - Viasat Nature Türkiye - + + + + 24 + 24 + 360 + 360 + a2 + a2 + A Haber + A Haber + Akit + Al Jazeera (Arapça) + Al Jazeera (İngilizce) + Saudi TV + A News + a Para + Arirang + A Spor + A Spor + Atv + Atv + Az TV + BabyTV + BBC Earth + BBC Entertainment + BBC First + BBC News + beIN SPORTS HABER + Bengü Türk TV + Beyaz TV + BEA + Bloomberg HT + Bloomberg HT + Bloomberg + Brt 1 + Brt 3 + Cartoon Network + Cctv 4 + CGTN + CGTN Documentary + CNN Türk + CNN Türk + Da Vinci + Discovery Channel + Discovery Science + DISNEY JUNIOR + Diyanet TV + DMAX + DMAX + DREAM TURK TV HD + Duck TV + Dw Tv (Almanca) + Dw Tv (İngilizce) + TRT EBA TV İLKOKUL + TRT EBA TV LİSE + TRT EBA TV ORTAOKUL + EDGEsport + Ekotürk + English Club TV + Eurosport 1 + Eurosport 2 + FB TV + FilmBOX HD + FOX + FOX + France 24 (İngilizce) + France 24 (Fransızca) + Freedom + FX + Haber Global + Haber Global + HABERTÜRK TV + HABERTÜRK TV + Halk TV + Hayat Plus + ID + Kablo Info + Kanal 7 + Kanal B + Kanal D + Kanal D + Kbs World + Genç TV + Kocaeli, Tv 41 + Kon TV + KRT TV + Bursa, Line TV + Minika Çocuk + Minika Go + MOONBUG KIDS + MyZEN TV + National Geographic + National Geographic Wild + NBA TV + Nhk World + NTV + NTV + Al Quran Al Kareem + Rtg Int + Planeta RTR + Russia 24 + Show + Show + Sinema 1001 + Sinema 1002 + Sinema 2 + Sinema Aile + Sinema Aile 2 + Sinema Aksiyon + Sinema Aksiyon 2 + Sinema Komedi + Sinema Komedi 2 + Sinema TV + Sinema Yerli + Sinema Yerli 2 + SZC + SPORTS TV + S Sport + S Sport2 + Star + Star + Al Sunnah Al Nabawiya + Tarih Tv + TEVE2 + TGRT Haber + TGRT Haber + TİVİ 6 + TLC + TLC + TMB + Trace Sport Stars + Trace Urban + TRT 1 + TRT 1 + TRT 2 + TRT Arabi + TRT Avaz + TRT Belgesel + TRT Belgesel + TRT Çocuk + TRT Çocuk + TRT DİYANET ÇOCUK + TRT EBA TV İLKOKUL + TRT EBA TV LİSE + TRT EBA TV ORTAOKUL + TRT Haber + TRT Haber + TRT Kurdî + TRT Müzik + TRT Spor + TRT Spor + TRT Spor Yıldız + TRT Türk + TRT World + TH Türk Haber + Türkmeneli TV + tv 100 + TV 4 + TV5 + Tv 5 Monde Europe + TV 8 + TV 8 + TV 8,5 + Tvnet + Ülke TV + Ülke TV + Ulusal 1 + Üniversite TV + Vav TV + Viasat Explore + Viasat History + Viasat Nature + diff --git a/sites/turksatkablo.com.tr/turksatkablo.com.tr.config.js b/sites/turksatkablo.com.tr/turksatkablo.com.tr.config.js index 960f5ce8..64140b30 100644 --- a/sites/turksatkablo.com.tr/turksatkablo.com.tr.config.js +++ b/sites/turksatkablo.com.tr/turksatkablo.com.tr.config.js @@ -7,7 +7,10 @@ module.exports = { return `https://www.turksatkablo.com.tr/userUpload/EPG/y.json?_=${date.valueOf()}` }, request: { - timeout: 60000 + timeout: 60000, + cache: { + ttl: 60 * 60 * 1000 // 1 hour + } }, parser: function ({ content, channel, date }) { let programs = [] @@ -32,6 +35,25 @@ module.exports = { }) return programs + }, + async channels() { + const axios = require('axios') + const data = await axios + .get('https://www.turksatkablo.com.tr/userUpload/EPG/y.json') + .then(r => r.data) + .catch(console.log) + + let channels = [] + + data.k.forEach(item => { + channels.push({ + lang: 'tr', + site_id: item.x, + name: item.n + }) + }) + + return channels } } diff --git a/sites/turksatkablo.com.tr/turksatkablo.com.tr.test.js b/sites/turksatkablo.com.tr/turksatkablo.com.tr.test.js index f33a264f..b1c38d21 100644 --- a/sites/turksatkablo.com.tr/turksatkablo.com.tr.test.js +++ b/sites/turksatkablo.com.tr/turksatkablo.com.tr.test.js @@ -1,5 +1,3 @@ -// npm run grab -- --site=turksatkablo.com.tr - const { parser, url } = require('./turksatkablo.com.tr.config.js') const dayjs = require('dayjs') const utc = require('dayjs/plugin/utc')