From 5c10f403ce133366604ee9b3ea4f678ee98d589e Mon Sep 17 00:00:00 2001
From: freearhey <7253922+freearhey@users.noreply.github.com>
Date: Tue, 28 Nov 2023 14:51:06 +0300
Subject: [PATCH] Update telenet.tv
---
sites/telenet.tv/readme.md | 21 ++
sites/telenet.tv/telenet.tv.channels.xml | 375 ++++++++++++++++-------
sites/telenet.tv/telenet.tv.config.js | 8 +-
sites/telenet.tv/telenet.tv.test.js | 3 -
4 files changed, 287 insertions(+), 120 deletions(-)
create mode 100644 sites/telenet.tv/readme.md
diff --git a/sites/telenet.tv/readme.md b/sites/telenet.tv/readme.md
new file mode 100644
index 00000000..fb698d49
--- /dev/null
+++ b/sites/telenet.tv/readme.md
@@ -0,0 +1,21 @@
+# telenet.tv
+
+https://www.telenet.tv/nl/epg/initial
+
+### Download the guide
+
+```sh
+npm run grab -- --site=telenet.tv
+```
+
+### Update channel list
+
+```sh
+npm run channels:parse -- --config=./sites/telenet.tv/telenet.tv.config.js --output=./sites/telenet.tv/telenet.tv.channels.xml
+```
+
+### Test
+
+```sh
+npm test -- telenet.tv
+```
diff --git a/sites/telenet.tv/telenet.tv.channels.xml b/sites/telenet.tv/telenet.tv.channels.xml
index 2c16f88c..ea90e6c7 100644
--- a/sites/telenet.tv/telenet.tv.channels.xml
+++ b/sites/telenet.tv/telenet.tv.channels.xml
@@ -1,113 +1,262 @@
-
-
-
- 2M Monde
- Al Jazeera English
- BBC One
- BBC Two
- BBC World News Europe
- Bloomberg TV Europe
- CGTN
- CNBC Europe
- CNN International Europe
- Dorcel TV
- Euronews Français
- Hustler HD Europe
- MTV 00s
- MTV Live
- Penthouse Gold
- Penthouse Passion
- Playboy TV Europe
- Play Sports 5
- Shorts TV
- The Israeli Network
- AB 3
- Be 1
- Be 1 +1h
- Be Ciné
- Be Séries
- C8
- Ciné+ Classic
- Ciné+ Frisson
- Ciné+ Premier
- Club RTL
- Discovery Channel France
- Eleven Pro League 1 NL
- France 2
- France 3
- France 4
- France 5
- La Trois
- La Une
- LCI
- LN24
- Mezzo Live HD
- Nickelodeon France
- Plug RTL
- Radio Contact
- RTL TVI
- TFX
- TV5Monde Europe
- TV Breizh
- VOOsport World 1
- VOOsport World 2
- VOOsport World 3
- VOOsport World 4
- Mediaset Italia
- Rai 1
- Animal Planet Europe
- ATV
- AVS Gent
- Baby TV Europe
- BBC Entertainment Europe
- BBC First Nederland
- Canvas
- Dobbit TV NL
- Eclips TV
- Één
- E! Europe
- Eleven Sports 1 NL
- Eleven Sports 2 NL
- Eleven Sports 3 NL
- Eleven Pro League 2 NL
- Eleven Pro League 3 NL
- Focus-WTV
- History Europe
- Kanaal Z
- Ketnet
- Maghreb TV
- Ment TV
- Nat Geo Wild Europe
- Nick Jr
- Njam!
- NPO 1
- NPO 2
- NPO 3
- OutTV
- PlattelandsTv
- Play 24/7
- Play 4
- Play 5
- Play 6
- Play 7
- Play More Black
- Play More Cinema
- Play More Kicks
- Play Sports 1
- Play Sports 2
- Play Sports 3
- Play Sports 4
- Play Sports Golf
- Play Sports Open
- Q-Music
- TV Limburg
- TV Oost
- Vlaams Parlement TV
- VTM
- VTM 2
- VTM 3
- VTM 4
- VTM Gold
- VTM Kids
- Xite
-
+
+
+
+ 2M Monde
+ Al Jazeera Eng.
+ BBC News
+ BBC 1
+ BBC 2
+ Bloomberg
+ CGTN
+ CNBC Europe
+ CNN
+ Dorcel TV
+ Euronews
+ Hustler HD
+ MTV 00s
+ MTV Live
+ Penthouse Gold
+ Penthouse Passion
+ Playboy TV
+ Play Sports Premier League
+ ShortsTV
+ The Israëli Network
+ AB3
+ Be 1
+ Be 1+1h
+ Be Ciné
+ Be Séries
+ C8
+ Ciné+ Classic
+ Ciné+ Frisson
+ Ciné+ Premier
+ RTL club
+ Discovery FR
+ DAZN Eleven Pro League 1 NL
+ France 2
+ France 3
+ France 4
+ France 5
+ La Trois
+ La Une HD
+ LCI
+ LN24
+ Mezzo Live HD
+ Nickelodeon FR
+ RTL plug
+ R. Contact Vision
+ RTL tvi
+ TFX
+ TV5Monde
+ TV Breizh
+ VOO Sport World 1
+ VOO Sport World 2
+ VOO Sport World 3
+ VOO Sport World 4
+ Mediaset Italia
+ Rai Uno
+ Animal Planet
+ Baby TV
+ BBC Entertainment
+ BBC First
+ VRT CANVAS
+ DOBBIT TV
+ Eclips TV
+ VRT 1
+ E! Ent
+ DAZN Eleven Sports 1
+ DAZN Eleven Sports 2
+ DAZN Eleven Sports 3
+ DAZN Eleven Pro League 2 NL
+ DAZN Eleven Pro League 3 NL
+ History.TV
+ KanaalZ
+ Ketnet
+ Al Maghreb TV
+ MENT TV
+ Nat Geo Wild
+ Nick Jr.
+ njam!
+ NPO 1
+ NPO 2
+ NPO 3
+ OUT TV
+ PlattelandsTv
+ Play4
+ Play5
+ Play6
+ Play7
+ Play More Black
+ Play More Cinema
+ Play More Kicks
+ Play Sports HD1
+ Play Sports HD2
+ Play Sports HD3
+ Play Sports HD4
+ Play Sports Golf
+ Play Sports Open
+ Q-music
+ Vlaams Parlement TV
+ VTM 2
+ VTM 3
+ VTM 4
+ vtm HD
+ VTM GOLD
+ VTM NON-STOP DOKTERS
+ Xite
+
diff --git a/sites/telenet.tv/telenet.tv.config.js b/sites/telenet.tv/telenet.tv.config.js
index 38d5a57f..e43267af 100644
--- a/sites/telenet.tv/telenet.tv.config.js
+++ b/sites/telenet.tv/telenet.tv.config.js
@@ -2,7 +2,7 @@ const axios = require('axios')
const dayjs = require('dayjs')
const API_STATIC_ENDPOINT = 'https://static.spark.telenet.tv/eng/web/epg-service-lite/be'
-const API_PROD_ENDPOINT = 'https://prod.spark.telenet.tv/eng/web/linear-service/v2'
+const API_PROD_ENDPOINT = 'https://spark-prod-be.gnp.cloud.telenet.tv/eng/web/linear-service/v2'
module.exports = {
site: 'telenet.tv',
@@ -76,13 +76,13 @@ module.exports = {
},
async channels() {
const data = await axios
- .get(`${API_PROD_ENDPOINT}/channels?cityId=65535&language=en&productClass=Orion-DASH`)
+ .get(`${API_PROD_ENDPOINT}/channels?cityId=28001&language=en&productClass=Orion-DASH`)
.then(r => r.data)
.catch(console.log)
- return data.channels.map(item => {
+ return data.map(item => {
return {
- lang: 'be',
+ lang: 'nl',
site_id: item.id,
name: item.name
}
diff --git a/sites/telenet.tv/telenet.tv.test.js b/sites/telenet.tv/telenet.tv.test.js
index ccaede56..f08041af 100644
--- a/sites/telenet.tv/telenet.tv.test.js
+++ b/sites/telenet.tv/telenet.tv.test.js
@@ -1,6 +1,3 @@
-// npm run channels:parse -- --config=./sites/telenet.tv/telenet.tv.config.js --output=./sites/telenet.tv/telenet.tv.channels.xml
-// npm run grab -- --site=telenet.tv
-
const { parser, url } = require('./telenet.tv.config.js')
const fs = require('fs')
const path = require('path')