From a891187dc5050ccd95972ec1dfdc9e2a597b1416 Mon Sep 17 00:00:00 2001
From: freearhey <7253922+freearhey@users.noreply.github.com>
Date: Sat, 18 Nov 2023 17:03:04 +0300
Subject: [PATCH] Update chaines-tv.orange.fr
---
.../chaines-tv.orange.fr.channels.xml | 496 +++++++++++-------
.../chaines-tv.orange.fr.config.js | 21 +
.../chaines-tv.orange.fr.test.js | 1 +
3 files changed, 321 insertions(+), 197 deletions(-)
diff --git a/sites/chaines-tv.orange.fr/chaines-tv.orange.fr.channels.xml b/sites/chaines-tv.orange.fr/chaines-tv.orange.fr.channels.xml
index 7734e648..2c981734 100644
--- a/sites/chaines-tv.orange.fr/chaines-tv.orange.fr.channels.xml
+++ b/sites/chaines-tv.orange.fr/chaines-tv.orange.fr.channels.xml
@@ -1,197 +1,299 @@
-
-
- 01 TV
- 2M Monde
- 3sat
- 6ter
- AB 1
- Action
- Aljazeera English
- Animaux
- A+ Kids TV
- ARTE Français
- Automoto la chaîne
- BBC Entertainment Europe
- BBC World News Europe
- BeIn Sports 1 France
- BeIn Sports 2 France
- BeIn Sports 3 France
- BeIn Sports Max 10 France
- BeIn Sports Max 4 France
- BeIn Sports Max 5 France
- BeIn Sports Max 6 France
- BeIn Sports Max 7 France
- BeIn Sports Max 8 France
- BeIn Sports Max 9 France
- BET France
- BFM Business
- BFM TV
- Bloomberg TV Europe
- Boing France
- Boomerang France
- Boomerang France +1
- C8
- Canal J
- Canal + Cinéma France
- Canal + Décalé
- Canal + Docs
- Canal + France
- Canal + Grand Ecran
- Canal + Kids
- Canal + Séries
- Canal + Sport
- Canal Q
- Cartoon Network France
- Chasse & Pêche
- Chérie 25
- Cine + Classic
- Cine + Club
- Cine + Émotion
- Cine + Famiz
- Cine + Frisson
- Cine + Premier
- Clique TV
- Clubbing TV
- CNBC Europe
- C News
- CNN International Europe
- Comédie +
- Comedy Central France
- Crime District
- C Star
- Das Erste
- Demain TV
- Disney Channel France
- Disney Channel France +1
- Disney Junior France
- DW English
- Equidia
- Eurochannel
- EuroNews Français
- FashionTV Europe
- France 2
- France 24 English
- France 24 Français
- France 3
- France 3 Alpes
- France 3 Alsace
- France 3 Aquitaine
- France 3 Auvergne
- France 3 Bourgogne
- France 3 Bretagne
- France 3 Centre-Val de Loire
- France 3 Champagne-Ardenne
- France 3 Corse Via Stella
- France 3 Côte d'Azur
- France 3 Franche-Comté
- France 3 Languedoc-Roussillon
- France 3 Limousin
- France 3 Lorraine
- France 3 Midi-Pyrénées
- France 3 Nord Pas-de-Calais
- France 3 Paris Ile-de-France
- France 3 Pays de la Loire
- France 3 Picardie
- France 3 Poitou-Charentes
- France 3 Provence-Alpes
- France 3 Rhône-Alpes
- France 4
- France 5
- Franceinfo:
- Game One
- Game One +1
- Golf Channel France
- Gulli
- Histoire TV
- I24 News Français
- J-One
- KTO
- LCI
- LCP Assemblée Nationale
- L'Équipe
- Lucky Jack.tv
- Luxe TV
- M6
- M6 Music
- Maison & Travaux TV
- Mangas
- MCM France
- Melody
- Melody d'Afrique
- Mezzo
- Mezzo Live HD
- ES1
- MTV France
- MTV Hits France
- Museum
- MyZen TV
- National Geographic France
- National Geographic Wild France
- NHK World Japan
- Nickelodeon France
- Nickelodeon France +1
- Nickelodeon Junior France
- Nickelodeon Teen
- Nitro Deutschland
- Nollywood TV
- Novelas TV
- NRJ 12
- NRJ Hits
- OCS choc
- OCS City
- OCS geants
- OCS max
- Olympia TV
- One
- Paramount Channel France
- Paramount Channel Décalé
- Paris Première
- Piwi +
- Planète +
- Planète + A&E
- Planète + CI
- Polar +
- ProSieben Deutschland
- LCP Public Sénat
- Rai 1
- Rai 2
- Rai 3
- Rai News 24
- RMC Découverte
- RMC Story
- RTL 9
- RTL Zwei Deutschland
- RTP Internacional Europa
- Science & Vie TV
- Série Club
- Sport en France
- Stingray Classica
- Sunu Yeuf
- Super RTL Deutschland
- TCM Cinéma
- TéléToon +
- TéléToon + 1
- Téva
- TF 1
- TF 1 +1
- TF 1 Séries Films
- TFX
- The Israeli Network
- Tiji
- TMC
- TMC +1
- Toonami France
- Toute l'Histoire
- TV5Monde France Belgique Suisse
- TV Breizh
- TVE Internacional Europa
- TV Pitchoun
- Ultra Nature
- Ushuaïa TV
- Voxafrica Afrique
- Vox Deutschland
- W9
- Warner TV France
- ZDF
- ZDF Neo
-
+
+
+
+ 2M MONDE
+ 6TER
+ AB1
+ ACTION
+ AL JAZEERA Anglais
+ ANIMAUX
+ ARTE
+ AUTOMOTO, la chaine
+ BBC ENTERTAINMENT
+ BBC NEWS
+ BEIN SPORTS 1
+ BEIN SPORTS 2
+ BEIN SPORTS 3
+ BEIN SPORTS MAX 10
+ BEIN SPORTS MAX 4
+ BEIN SPORTS MAX 5
+ BEIN SPORTS MAX 6
+ BEIN SPORTS MAX 7
+ BEIN SPORTS MAX 8
+ BEIN SPORTS MAX 9
+ BET
+ BFM BUSINESS
+ BFM TV
+ BLOOMBERG EUROPE
+ BOOMERANG
+ BOOMERANG +1
+ C8
+ CANAL J
+ CANAL+
+ CANAL+CINEMA(S)
+ CANAL+DOCS
+ CANAL+GRAND ECRAN
+ CANAL+kids
+ CANAL+SERIES
+ CANAL+SPORT
+ CHASSE PECHE
+ CHERIE 25
+ CINE+CLASSIC
+ CINE+CLUB
+ CINE+EMOTION
+ CINE+FAMIZ
+ CINE+FRISSON
+ CINE+PREMIER
+ CLUBBING TV
+ CNBC
+ CNEWS
+ CNN INTERNATIONAL
+ COMEDIE+
+ COMEDY CENTRAL
+ CRIME DISTRICT
+ CSTAR
+ DEMAIN
+ DISNEY CHANNEL
+ DISNEY JUNIOR
+ DEUTSCHE WELLE
+ EQUIDIA
+ EUROCHANNEL
+ EURONEWS Français
+ FASHIONTV PARIS
+ FRANCE 2
+ FRANCE 24 Anglais
+ FRANCE 24 Français
+ FRANCE 3
+ FRANCE 3 CORSE VIA STELLA
+ FRANCE 4
+ FRANCE 5
+ FRANCEINFO:
+ GAME ONE
+ GAME ONE +1
+ GOLF CHANNEL
+ GULLI
+ HISTOIRE TV
+ I24NEWS
+ J-ONE
+ KTO
+ LCI
+ LCP 100%
+ LA CHAINE L'EQUIPE
+ LUCKY JACK
+ LUXE TV
+ M6
+ M6MUSIC
+ MAISON ET TRAVAUX TV
+ MANGAS
+ MCM
+ MELODY
+ MELODY D'AFRIQUE
+ MEZZO
+ MEZZO LIVE
+ MGG TV
+ MTV
+ MTV HITS
+ MUSEUM TV
+ MY ZEN TV
+ NATIONAL GEOGRAPHIC
+ NATIONAL GEOGRAPHIC WILD
+ NHK WORLD - JAPAN
+ NICKELODEON
+ NICKELODEON JUNIOR
+ NICKELODEON +1
+ NICKELODEON TEEN
+ NOLLYWOOD TV
+ NOVELAS TV
+ NRJ12
+ NRJ HITS
+ OCS PULP
+ OCS GEANTS
+ OCS MAX
+ OLYMPIA TV
+ PARAMOUNT CHANNEL
+ PARAMOUNT CHANNEL DECALE
+ PARIS PREMIERE
+ PIWI+
+ PLANETE+
+ PLANETE+AVENTURE
+ PLANETE+CRIME
+ POLAR+
+ LCP/PS
+ RAI UNO
+ RAI DUE
+ RAI TRE
+ RAI NEWS 24
+ RMC DECOUVERTE
+ RMC STORY
+ RTL9
+ RTPI
+ SCIENCE & VIE TV
+ SERIE CLUB
+ SPORT EN FRANCE
+ STINGRAY CLASSICA
+ SUNU YEUF
+ TCM CINEMA
+ TELETOON+
+ TELETOON +1
+ TEVA
+ TF1
+ TF1 +1
+ TF1 SERIES FILMS
+ TFX
+ TIJI
+ TMC
+ TMC +1
+ TOUTE L'HISTOIRE
+ TV5MONDE
+ TV BREIZH
+ TVE INTERNACIONAL
+ TV PITCHOUN
+ USHUAIA TV
+ VOXAFRICA
+ W9
+
diff --git a/sites/chaines-tv.orange.fr/chaines-tv.orange.fr.config.js b/sites/chaines-tv.orange.fr/chaines-tv.orange.fr.config.js
index 66ae219c..60c9ad2a 100644
--- a/sites/chaines-tv.orange.fr/chaines-tv.orange.fr.config.js
+++ b/sites/chaines-tv.orange.fr/chaines-tv.orange.fr.config.js
@@ -1,3 +1,4 @@
+const axios = require('axios')
const dayjs = require('dayjs')
module.exports = {
@@ -25,6 +26,26 @@ module.exports = {
})
return programs
+ },
+ async channels() {
+ const html = await axios
+ .get(`https://chaines-tv.orange.fr/programme-tv?filtres=all`)
+ .then(r => r.data)
+ .catch(console.log)
+
+ const [, nuxtFunc] = html.match(/window\.__NUXT__=([^<]+)/) || [null, null]
+ const func = new Function(`"use strict";return ${nuxtFunc}`)
+
+ const data = func()
+ const items = data.state.channels.channels
+
+ return items.map(item => {
+ return {
+ lang: 'fr',
+ site_id: item.idEPG,
+ name: item.name
+ }
+ })
}
}
diff --git a/sites/chaines-tv.orange.fr/chaines-tv.orange.fr.test.js b/sites/chaines-tv.orange.fr/chaines-tv.orange.fr.test.js
index 9e2fc529..c0a94425 100644
--- a/sites/chaines-tv.orange.fr/chaines-tv.orange.fr.test.js
+++ b/sites/chaines-tv.orange.fr/chaines-tv.orange.fr.test.js
@@ -1,3 +1,4 @@
+// npm run channels:parse -- --config=./sites/chaines-tv.orange.fr/chaines-tv.orange.fr.config.js --output=./sites/chaines-tv.orange.fr/chaines-tv.orange.fr.channels.xml
// npm run grab -- --site=chaines-tv.orange.fr
const { parser, url } = require('./chaines-tv.orange.fr.config.js')