diff --git a/sites/hd-plus.de.channels.xml b/sites/hd-plus.de.channels.xml index 4b451b05e..e5bebb4b0 100755 --- a/sites/hd-plus.de.channels.xml +++ b/sites/hd-plus.de.channels.xml @@ -2,15 +2,15 @@ 1-2-3 TV - 13th Street Deutschland 3sat + 13th Street Deutschland + Augsburg TV Anixe HD Serie ARD Alpha ARTE Deutsch AstroTV - ATV ATV 2 - Augsburg TV + ATV AXN Deutschland Bayerisches Fernsehen Nord Bibel TV @@ -18,6 +18,7 @@ Boomerang Deutschland Cartoon Network Deutschland Channel 21 + Stingray Classica Comedy Central Deutschland Das Erste Deluxe Music @@ -37,8 +38,8 @@ History Deutschland Hope TV Deutsch HR Fernsehen - HSE HSE Extra + HSE JML Direct Junior Juwelo @@ -54,15 +55,15 @@ MTV Live HD MTV Music 24 München TV + Welt N-TV National Geographic Deutschland National Geographic Wild Deutschland - Nitro Deutschland - NPO 1 NPO 2 + NPO 1 One - ORF 1 ORF 2 + ORF 1 ORF III ORF Sport + Pearl TV @@ -79,26 +80,27 @@ Romance TV Deutschland RTL Crime Deutschland RTL Deutschland - RTL Living Deutschland RTL Zwei Deutschland - Sat. 1 Deutschland + RTL Living Deutschland + Nitro Deutschland Sat. 1 Emotions Sat. 1 Gold Deutschland + Sat. 1 Deutschland Servus TV Deutschland Sixx Deutschland - Sky Atlantic Sky Cinema Action - Sky Cinema Hits - Sky Cinema Nostalgie - Sky Comedy - Sky Krimi - Sky Sport 1 - Sky Sport 2 - Sky Sport Austria 1 - Sky Sport Bundesliga 1 - Sky Sport Bundesliga 2 - Sky Sport Bundesliga 3 + Sky Atlantic Sky Sport Bundesliga 4 + Sky Sport Bundesliga 3 + Sky Sport Bundesliga 2 + Sky Sport Bundesliga 1 + Sky Comedy + Sky Cinema Hits + Sky Krimi + Sky Cinema Nostalgie + Sky Sport Austria 1 + Sky Sport 2 + Sky Sport 1 Sky Sport News Sonnenklar TV Sport 1 @@ -107,7 +109,6 @@ SR Fernsehen SRF 1 SRF Zwei - Stingray Classica Super RTL Deutschland Syfy Deutschland Tagesschau 24 @@ -119,7 +120,6 @@ TVA Ostbayern Universal TV Deutschland Vox Deutschland - Welt Welt der Wunder TV ZDF ZDF Info diff --git a/sites/hd-plus.de.config.js b/sites/hd-plus.de.config.js index e69ec9666..50029c418 100644 --- a/sites/hd-plus.de.config.js +++ b/sites/hd-plus.de.config.js @@ -11,12 +11,13 @@ dayjs.extend(customParseFormat) module.exports = { lang: 'de', + days: 3, site: 'hd-plus.de', channels: 'hd-plus.de.channels.xml', output: '.gh-pages/guides/hd-plus.de.guide.xml', url({ date, channel }) { - const now = dayjs() - const day = now.diff(date, 'd') + const today = dayjs().utc().startOf('d') + const day = date.diff(today, 'd') return `https://www.hd-plus.de/epg/channel/${channel.site_id}?d=${day}` }, @@ -32,7 +33,7 @@ module.exports = { items.forEach(item => { const title = parseTitle(item) let start = parseStart(item, date) - const stop = parseStop(item, date) + const stop = start.add(1, 'h') if (programs.length) { programs[programs.length - 1].stop = start } @@ -44,10 +45,6 @@ module.exports = { } } -function parseStop(item, date) { - return date.endOf('d') -} - function parseStart(item, date) { let time = (item.querySelector('td:nth-child(2)') || { textContent: '' }).textContent time = time.split(' ').pop()