diff --git a/sites/tvheute.at/readme.md b/sites/tvheute.at/readme.md new file mode 100644 index 00000000..9566ada8 --- /dev/null +++ b/sites/tvheute.at/readme.md @@ -0,0 +1,21 @@ +# tvheute.at + +https://tvheute.at/ + +### Download the guide + +```sh +npm run grab -- --site=tvheute.at +``` + +### Update channel list + +```sh +npm run channels:parse -- --config=./sites/tvheute.at/tvheute.at.config.js --output=./sites/tvheute.at/tvheute.at.channels.xml +``` + +### Test + +```sh +npm test -- tvheute.at +``` diff --git a/sites/tvheute.at/tvheute.at.channels.xml b/sites/tvheute.at/tvheute.at.channels.xml index be64725e..a685c37a 100644 --- a/sites/tvheute.at/tvheute.at.channels.xml +++ b/sites/tvheute.at/tvheute.at.channels.xml @@ -1,55 +1,56 @@ - - - 3sat - ARTE Deutsch - ATV - ATV 2 - Bayerisches Fernsehen Süd - Das Erste - DAZN 1 Deutschland - Disney Channel Deutschland - DMAX Austria - Eurosport 1 Germany - HR Fernsehen - Kabel Eins Austria - KIKA - MDR Fernsehen Sachsen-Anhalt - NDR Fernsehen Niedersachsen - Nickelodeon Austria - Nitro Austria - N-TV Austria - Oe24 TV - One - ORF 1 - ORF 2 - ORF III - ORF Sport + - Phoenix - ProSieben Austria - ProSieben Maxx Austria - Puls 4 - RBB Berlin - RTL Crime Deutschland - RTL Austria - RTL Living Deutschland - RTL Zwei Austria - Sat. 1 Österreich - Sat. 1 Gold Österreich - Servus TV Österreich - Sixx Austria - Sky Cinema Premieren - Sky Sport 1 - Sky Sport 2 - Sky Sport Austria 1 - Sky Sport Bundesliga 1 - Sport 1 - Super RTL Austria - SWR Fernsehen Baden-Württemberg - Tele 5 - Vox Austria - WDR Fernsehen Köln - Welt - ZDF - ZDF Info - ZDF Neo - \ No newline at end of file + + + 3SAT + ARTE + ATV + ATV2 + BR + CANAL+ + ARD + DAZN + Disney + DMAX + EURO + HR + K1 + KIKA + MDR + NDR + NICK + NITRO + NTV + OE24TV + ONE + ORF1 + ORF2 + ORF III + ORF + + PHOENIX + PRO7 + 7MAXX + PULS 4 + rbb + RTL + RTLCrime + RTLLiving + RTLS + RTL2 + SAT1 + Sat1Gold + ServusTV + sixx + SKYci + SKYsp1 + SKYsp2 + SKYaut + SKYbl + Sport1 + SWR + Tele 5 + VOX + WDR + WELT + ZDF + ZDFinfo + ZDFneo + diff --git a/sites/tvheute.at/tvheute.at.config.js b/sites/tvheute.at/tvheute.at.config.js index 500c91ba..8ce8e552 100644 --- a/sites/tvheute.at/tvheute.at.config.js +++ b/sites/tvheute.at/tvheute.at.config.js @@ -24,6 +24,29 @@ module.exports = { }) return programs + }, + async channels() { + const axios = require('axios') + const html = await axios + .get(`https://tvheute.at/part/channel-selection`) + .then(r => r.data) + .catch(console.log) + + let channels = [] + + const $ = cheerio.load(html) + $('.sortable-list > li').each((i, el) => { + const name = $(el).find('label').text() + const site_id = $(el).find('input').attr('value') + + channels.push({ + lang: 'de', + site_id, + name + }) + }) + + return channels } } diff --git a/sites/tvheute.at/tvheute.at.test.js b/sites/tvheute.at/tvheute.at.test.js index fb5905b1..c9666ece 100644 --- a/sites/tvheute.at/tvheute.at.test.js +++ b/sites/tvheute.at/tvheute.at.test.js @@ -1,5 +1,3 @@ -// npm run grab -- --site=tvheute.at - const { parser, url } = require('./tvheute.at.config.js') const dayjs = require('dayjs') const utc = require('dayjs/plugin/utc')