From b4b21e81120957f2b40f0b83c24d143f31212c69 Mon Sep 17 00:00:00 2001 From: RevGear <95308545+RevGear@users.noreply.github.com> Date: Thu, 29 Dec 2022 09:32:32 +0000 Subject: [PATCH 1/4] Update skylink.cz_cz.channels.xml --- sites/skylink.cz/skylink.cz_cz.channels.xml | 146 ++++++++++---------- 1 file changed, 73 insertions(+), 73 deletions(-) diff --git a/sites/skylink.cz/skylink.cz_cz.channels.xml b/sites/skylink.cz/skylink.cz_cz.channels.xml index 8f8d09e0..06a1cdac 100644 --- a/sites/skylink.cz/skylink.cz_cz.channels.xml +++ b/sites/skylink.cz/skylink.cz_cz.channels.xml @@ -1,12 +1,18 @@ + 360TuneBox + 3SAT Al Jazeera AMC - Arena Sport 1 HD + Animal Planet + + Arena Sport 1 HD + Arena Sport 2 + ARTE Auto Motor Sport HD - AXN AXN Black + AXN AXN White BabyTV Barrandov Krimi @@ -16,14 +22,18 @@ Boomerang BoomerangEMEA.us Brazzers TV Europe + Canal 24 Horas CANAL+ Domo Cartoon Network CBS Reality Cinemax Cinemax2 Club MTV Europe + CNBC Europe CNN International Europe CNN Prima NEWS HD + Cool TV + Crime & Investigation CS Film CS History CS Horror @@ -36,29 +46,36 @@ ČT24 HD ČT3 HD Deutsche Welle English + Deluxe Music + Discovery Channel + Discovery Science Disney Channel Disney Junior DMAX DocuBox Dorcel TV Dorcel XXX - ducktv + ducktv + Duna + Duna SK Dvojka HD E! Europe + English Club TV Epic Drama HD Erox Eroxxx EuroNews - Eurosport1 - Eurosport2 - - + Eurosport 1 + + Eurosport 2 + Extreme Sports Channel Fashion TV Europe FashionBox.nl Fast&FunBox FightBox Film Europe HD + Film Europe+ HD Film+ FilmBox @@ -67,42 +84,58 @@ FilmBox Premium HD FilmBox Stars FilmBoxPremiumCzechRepublicSlovakia.cz - Fishing and Hunting + Food Network France 24 HD + France 24 + Ginx eSports TV Golf Channel HBO HBO2 HBO3 HBO3 History HD + HTV1 + HTV2 Hustler Hustler HD + Investigation Discovery Jednotka HD JimJam JOJ Cinema HD JOJ Family HD JOJCinema.sk Jojko.sk + JOJ Plus JOJSport.sk JOJWAU.sk + Kabel1 + KiKA Kino Barrandov LALA TV LEO TV Love Nature HD + M1 + M2 Markiza Dajto - Markíza International - Mezzo HD + Markíza International + Markíza + TV Doma + Mezzo HD + Mezzo Live HD Minimax Mňam TV MnauTV.cz + MTV 00s MTV 80s MTV 90s MTV MTVHitsEurope.uk MTV Live + Music Box + National Geographic National Geographic HD National Geographic Wild Nick Jr Czech @@ -123,8 +156,15 @@ ÓČKO BLACK HD ÓČKO EXPRES HD ÓČKO STAR + ORF1 + ORF2 Paramount Network Playboy TV Europe + Polsat + Power TV + Praha TV + + Prima COOL HD Prima HD Prima KRIMI HD @@ -135,9 +175,18 @@ Prima ZOOM HD PrimaPlus.cz Private TV + PRO7 + Rebel RELAX Retro Russia Today + RT Doc + RTL + RTL Hungary + RTL Hungary + RTL2 + SAT.1 + SAT.1 Gold Senzi Sky News International Skylink 7 @@ -146,67 +195,49 @@ Spektrum HD Spektrum Home Spektrum + Sport 1 HD Sport 2 HD - Sport.sk + Sport.sk SPORT5 Stingray Classica HD Stingray CMusic Stingray iConcerts HD TA3 HD Televize Seznam + TLC + Travel Channel Travelxp HD + TV5 Monde TV Barrandov HD + JOJ TV Lux HD TV Noe HD + TVP 1 + TVP 2 TV Paprika TV8 HD UP NETWORK - - - + Viasat Explore + Viasat History HD + Viasat Nature HD VIXEN HD - - - - - - - - - + VOX + ZDF + ZDF NEO - - - - - - - - - - - - - - - - - - - @@ -217,58 +248,27 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file From 53e8c9368ff094a46b12c5b87eb2fe6dc50e9fef Mon Sep 17 00:00:00 2001 From: RevGear <95308545+RevGear@users.noreply.github.com> Date: Thu, 29 Dec 2022 09:38:42 +0000 Subject: [PATCH 2/4] Update skylink.cz_cz.channels.xml --- sites/skylink.cz/skylink.cz_cz.channels.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sites/skylink.cz/skylink.cz_cz.channels.xml b/sites/skylink.cz/skylink.cz_cz.channels.xml index 06a1cdac..e76b2aed 100644 --- a/sites/skylink.cz/skylink.cz_cz.channels.xml +++ b/sites/skylink.cz/skylink.cz_cz.channels.xml @@ -136,7 +136,7 @@ Music Box National Geographic - National Geographic HD + National Geographic Wild Nick Jr Czech Nickelodeon From d6ec730d4f1b959057d5f08b71144a36ec9f6b5c Mon Sep 17 00:00:00 2001 From: RevGear <95308545+RevGear@users.noreply.github.com> Date: Thu, 29 Dec 2022 13:15:14 +0000 Subject: [PATCH 3/4] Rename to mujtvprogram.cz --- .../__data__/content.html | 0 .../__data__/no_content.html | 0 .../mujtvprogram.cz.config.js} | 0 .../mujtvprogram.cz.test.js} | 104 ++++++++-------- .../mujtvprogram.cz_cz.channels.xml} | 116 +++++++++--------- 5 files changed, 110 insertions(+), 110 deletions(-) rename sites/{skylink.cz => mujtvprogram.cz}/__data__/content.html (100%) rename sites/{skylink.cz => mujtvprogram.cz}/__data__/no_content.html (100%) rename sites/{skylink.cz/skylink.cz.config.js => mujtvprogram.cz/mujtvprogram.cz.config.js} (100%) rename sites/{skylink.cz/skylink.cz.test.js => mujtvprogram.cz/mujtvprogram.cz.test.js} (89%) rename sites/{skylink.cz/skylink.cz_cz.channels.xml => mujtvprogram.cz/mujtvprogram.cz_cz.channels.xml} (80%) diff --git a/sites/skylink.cz/__data__/content.html b/sites/mujtvprogram.cz/__data__/content.html similarity index 100% rename from sites/skylink.cz/__data__/content.html rename to sites/mujtvprogram.cz/__data__/content.html diff --git a/sites/skylink.cz/__data__/no_content.html b/sites/mujtvprogram.cz/__data__/no_content.html similarity index 100% rename from sites/skylink.cz/__data__/no_content.html rename to sites/mujtvprogram.cz/__data__/no_content.html diff --git a/sites/skylink.cz/skylink.cz.config.js b/sites/mujtvprogram.cz/mujtvprogram.cz.config.js similarity index 100% rename from sites/skylink.cz/skylink.cz.config.js rename to sites/mujtvprogram.cz/mujtvprogram.cz.config.js diff --git a/sites/skylink.cz/skylink.cz.test.js b/sites/mujtvprogram.cz/mujtvprogram.cz.test.js similarity index 89% rename from sites/skylink.cz/skylink.cz.test.js rename to sites/mujtvprogram.cz/mujtvprogram.cz.test.js index 661f1f6d..2d745e39 100644 --- a/sites/skylink.cz/skylink.cz.test.js +++ b/sites/mujtvprogram.cz/mujtvprogram.cz.test.js @@ -1,52 +1,52 @@ -// npx epg-grabber --config=sites/skylink.cz/skylink.cz.config.js --channels=sites/skylink.cz/skylink.cz_cz.channels.xml --output=guide.xml --days=2 - -const { parser, url } = require('./skylink.cz.config.js') -const fs = require('fs') -const path = require('path') -const dayjs = require('dayjs') -const utc = require('dayjs/plugin/utc') -const customParseFormat = require('dayjs/plugin/customParseFormat') -dayjs.extend(customParseFormat) -dayjs.extend(utc) - - -const channel = { - site_id: '1', - xmltv_id: 'CT1.cz' -} - -it('can generate valid url for today', () => { - const date = dayjs.utc().startOf('d') - expect(url({ channel, date })).toBe('https://services.mujtvprogram.cz/tvprogram2services/services/tvprogrammelist_mobile.php?channel_cid=1&day=0') -}) - -it('can generate valid url for tomorrow', () => { - const date = dayjs.utc().startOf('d').add(1, 'd') - expect(url({ channel, date })).toBe('https://services.mujtvprogram.cz/tvprogram2services/services/tvprogrammelist_mobile.php?channel_cid=1&day=1') -}) - -it('can parse response', () => { - const content = fs.readFileSync(path.resolve(__dirname, '__data__/content.html')) - - let results = parser({ content }).map(p => { - p.start = p.start.toJSON() - p.stop = p.stop.toJSON() - return p - }) - expect(results[3]).toMatchObject({ - title: `Čepice`, - description: `Jarka (J. Bohdalová) vyčítá manželovi Jiřímu (F. Řehák), že jí nepomáhá při předvánočním úklidu. Vzápětí ale náhodou najde ve skříni ukrytou dámskou čepici a napadne ji, že jde o Jiřího dárek pro ni pod stromeček. Její chování se ihned změní. Jen muži naznačí, že by chtěla čepici jiné barvy. Manžel jí ovšem řekne, že čepici si u něj schoval kamarád Venca (M. Šulc). Zklamaná žena to prozradí Vencově manželce Božce (A. Tománková). Na Štědrý den však Božka najde pod stromečkem jen rtěnku...`, - category: 'film', - date: '1983', - director: ['Mudra F.'], - actor: ['Bohdalová J.', 'Řehák F.', 'Šulc M.'], - start: '2022-12-23T08:00:00.000Z', - stop: '2022-12-23T08:20:00.000Z' - }) - }) - - it('can handle empty guide', () => { - const content = fs.readFileSync(path.resolve(__dirname, '__data__/no_content.html')) - const result = parser(content, channel ) - expect(result).toMatchObject([]) -}) +// npx epg-grabber --config=sites/mujtvprogram.cz/mujtvprogram.cz.config.js --channels=sites/mujtvprogram.cz/mujtvprogram.cz_cz.channels.xml --output=guide.xml --days=2 + +const { parser, url } = require('./mujtvprogram.cz.config.js') +const fs = require('fs') +const path = require('path') +const dayjs = require('dayjs') +const utc = require('dayjs/plugin/utc') +const customParseFormat = require('dayjs/plugin/customParseFormat') +dayjs.extend(customParseFormat) +dayjs.extend(utc) + + +const channel = { + site_id: '1', + xmltv_id: 'CT1.cz' +} + +it('can generate valid url for today', () => { + const date = dayjs.utc().startOf('d') + expect(url({ channel, date })).toBe('https://services.mujtvprogram.cz/tvprogram2services/services/tvprogrammelist_mobile.php?channel_cid=1&day=0') +}) + +it('can generate valid url for tomorrow', () => { + const date = dayjs.utc().startOf('d').add(1, 'd') + expect(url({ channel, date })).toBe('https://services.mujtvprogram.cz/tvprogram2services/services/tvprogrammelist_mobile.php?channel_cid=1&day=1') +}) + +it('can parse response', () => { + const content = fs.readFileSync(path.resolve(__dirname, '__data__/content.html')) + + let results = parser({ content }).map(p => { + p.start = p.start.toJSON() + p.stop = p.stop.toJSON() + return p + }) + expect(results[3]).toMatchObject({ + title: `Čepice`, + description: `Jarka (J. Bohdalová) vyčítá manželovi Jiřímu (F. Řehák), že jí nepomáhá při předvánočním úklidu. Vzápětí ale náhodou najde ve skříni ukrytou dámskou čepici a napadne ji, že jde o Jiřího dárek pro ni pod stromeček. Její chování se ihned změní. Jen muži naznačí, že by chtěla čepici jiné barvy. Manžel jí ovšem řekne, že čepici si u něj schoval kamarád Venca (M. Šulc). Zklamaná žena to prozradí Vencově manželce Božce (A. Tománková). Na Štědrý den však Božka najde pod stromečkem jen rtěnku...`, + category: 'film', + date: '1983', + director: ['Mudra F.'], + actor: ['Bohdalová J.', 'Řehák F.', 'Šulc M.'], + start: '2022-12-23T08:00:00.000Z', + stop: '2022-12-23T08:20:00.000Z' + }) + }) + + it('can handle empty guide', () => { + const content = fs.readFileSync(path.resolve(__dirname, '__data__/no_content.html')) + const result = parser(content, channel ) + expect(result).toMatchObject([]) +}) diff --git a/sites/skylink.cz/skylink.cz_cz.channels.xml b/sites/mujtvprogram.cz/mujtvprogram.cz_cz.channels.xml similarity index 80% rename from sites/skylink.cz/skylink.cz_cz.channels.xml rename to sites/mujtvprogram.cz/mujtvprogram.cz_cz.channels.xml index e76b2aed..8e13b1ff 100644 --- a/sites/skylink.cz/skylink.cz_cz.channels.xml +++ b/sites/mujtvprogram.cz/mujtvprogram.cz_cz.channels.xml @@ -1,18 +1,23 @@ - + 360TuneBox 3SAT + Adult Channel Al Jazeera AMC + Animal Planet + Arena Sport 1 HD Arena Sport 2 ARTE Auto Motor Sport HD - AXN Black AXN + + AXN Black + AXN White BabyTV Barrandov Krimi @@ -21,12 +26,15 @@ Blue Hustler Boomerang BoomerangEMEA.us + Brazzers TV Europe Canal 24 Horas CANAL+ Domo Cartoon Network CBS Reality + Cinemax + Cinemax2 Club MTV Europe CNBC Europe @@ -35,27 +43,33 @@ Cool TV Crime & Investigation CS Film + CS History CS Horror CS Mystery ČT :D HD ČT art HD ČT Sport HD + ČT1 HD + ČT2 HD ČT24 HD ČT3 HD Deutsche Welle English Deluxe Music Discovery Channel + Discovery Science Disney Channel + Disney Channel Disney Junior DMAX DocuBox Dorcel TV Dorcel XXX - ducktv + Duck TV + Duck TV Duna Duna SK Dvojka HD @@ -66,35 +80,45 @@ Eroxxx EuroNews Eurosport 1 - + Eurosport 2 - + Extreme Sports Channel Fashion TV Europe FashionBox.nl Fast&FunBox FightBox Film Europe HD - + Film Europe+ HD Film+ + FilmBox + FilmBox Extra HD + FilmBox Family + + FilmBox Premium HD + FilmBox Premium FilmBox Stars - FilmBoxPremiumCzechRepublicSlovakia.cz + Fishing and Hunting + Food Network France 24 HD France 24 Ginx eSports TV Golf Channel HBO + HBO2 + HBO3 HBO3 History HD + HTV1 HTV2 Hustler @@ -120,7 +144,8 @@ Markiza Dajto Markíza International Markíza - TV Doma + Markíza Doma + MDR Mezzo HD Mezzo Live HD Minimax @@ -136,8 +161,11 @@ Music Box National Geographic + National Geographic Wild + + Nick Jr Czech Nickelodeon Nicktoons @@ -157,10 +185,13 @@ ÓČKO EXPRES HD ÓČKO STAR ORF1 + ORF2 + Paramount Network Playboy TV Europe Polsat + Power TV Praha TV @@ -176,6 +207,7 @@ PrimaPlus.cz Private TV PRO7 + Rebel RELAX Retro @@ -186,6 +218,7 @@ RTL Hungary RTL2 SAT.1 + SAT.1 Gold Senzi Sky News International @@ -195,9 +228,13 @@ Spektrum HD Spektrum Home Spektrum - - Sport 1 HD - Sport 2 HD + + Sport1 + + Sport 1 + + Sport 2 + Sport.sk SPORT5 Stingray Classica HD @@ -211,64 +248,27 @@ TV5 Monde TV Barrandov HD JOJ + + TV Lux HD TV Noe HD + TVP 1 TVP 2 TV Paprika + TV8 HD UP NETWORK + V1 Viasat Explore - Viasat History HD - Viasat Nature HD + + Viasat History + + Viasat Nature + VIXEN HD VOX ZDF ZDF NEO - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file From 5aca7cfe1c7ed822947f99c068b22f7cbdfa966a Mon Sep 17 00:00:00 2001 From: RevGear <95308545+RevGear@users.noreply.github.com> Date: Thu, 29 Dec 2022 13:25:45 +0000 Subject: [PATCH 4/4] Update mujtvprogram.cz_cz.channels.xml --- sites/mujtvprogram.cz/mujtvprogram.cz_cz.channels.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sites/mujtvprogram.cz/mujtvprogram.cz_cz.channels.xml b/sites/mujtvprogram.cz/mujtvprogram.cz_cz.channels.xml index 8e13b1ff..08f0477a 100644 --- a/sites/mujtvprogram.cz/mujtvprogram.cz_cz.channels.xml +++ b/sites/mujtvprogram.cz/mujtvprogram.cz_cz.channels.xml @@ -248,7 +248,7 @@ TV5 Monde TV Barrandov HD JOJ - + TV Central TV Lux HD TV Noe HD @@ -259,7 +259,7 @@ TV8 HD UP NETWORK - V1 + Viasat Explore Viasat History