diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml index ebb660ab..f6c97a89 100644 --- a/.github/workflows/auto-update.yml +++ b/.github/workflows/auto-update.yml @@ -34,6 +34,7 @@ jobs: tvtv.ca, tvtv.us, tv.lv, + maxtv.hrvatskitelekom.hr mncvision.id, tvguide.com, tvprofil.com diff --git a/README.md b/README.md index df339dbd..e86f4b38 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ To load a program guide, all you need to do is copy the link to one of the guide 🇨🇦 Canadahttps://iptv-org.github.io/epg/guides/tvtv.ca.guide.xml 🇨🇱 Chilehttps://iptv-org.github.io/epg/guides/mi.tv.guide.xml 🇨🇴 Colombiahttps://iptv-org.github.io/epg/guides/mi.tv.guide.xml + 🇭🇷 Croatiahttps://iptv-org.github.io/epg/guides/maxtv.hrvatskitelekom.hr.guide.xml 🇭🇷 Croatiahttps://iptv-org.github.io/epg/guides/tvprofil.com.guide.xml 🇨🇿 Czechiahttps://iptv-org.github.io/epg/guides/m.tv.sms.cz.guide.xml 🇸🇻 El Salvadorhttps://iptv-org.github.io/epg/guides/mi.tv.guide.xml @@ -51,6 +52,7 @@ To load a program guide, all you need to do is copy the link to one of the guide 🇵🇹 Portugalhttps://iptv-org.github.io/epg/guides/meo.pt.guide.xml 🇷🇴 Romaniahttps://iptv-org.github.io/epg/guides/programetv.ro.guide.xml 🇷🇺 Russiahttps://iptv-org.github.io/epg/guides/tv.yandex.ru.guide.xml + 🇷🇸 Serbiahttps://iptv-org.github.io/epg/guides/maxtv.hrvatskitelekom.hr.guide.xml 🇷🇸 Serbiahttps://iptv-org.github.io/epg/guides/tvprofil.com.guide.xml 🇸🇮 Sloveniahttps://iptv-org.github.io/epg/guides/tvprofil.com.guide.xml 🇪🇸 Spainhttps://iptv-org.github.io/epg/guides/programacion-tv.elpais.com.guide.xml diff --git a/sites/maxtv.hrvatskitelekom.hr.channels.xml b/sites/maxtv.hrvatskitelekom.hr.channels.xml new file mode 100755 index 00000000..b118807f --- /dev/null +++ b/sites/maxtv.hrvatskitelekom.hr.channels.xml @@ -0,0 +1,201 @@ + + + + 24 Kitchen Hrvatska + 3sat + Al Jazeera Balkans + Arena Sport 1 Hrvatska Hrvatska + Arena Sport 10 Hrvatska + Arena Sport 2 Hrvatska + Arena Sport 3 Hrvatska + Arena Sport 4 Hrvatska + Arena Sport 5 Hrvatska + Arena Sport 6 Hrvatska + Arena Sport 7 Hrvatska + Arena Sport 8 Hrvatska + Arena Sport 9 Hrvatska + Aurora TV + Baby TV Europe + Balkanika TV + BBC Earth Romania + BHT 1 + Blue Hustler Europe + Boomerang Central & Eastern Europe + Brazzers TV Europe + Cartoon Network Russia & Southeastern European + CBS Reality Europe + CGTN + Cinemax 2 Central Europe + Cinemax Central Europe + CineStar TV 1 Hrvatska + CineStar TV Action Hrvatska + CineStar TV Fantasy + CineStar TV Premiere 1 + CineStar TV Premiere 2 + Club MTV + CMC TV + CNBC Europe + CNN International Europe + Crime & Investigation UK + Da Vinci + Das Erste + Diadora TV + DM Sat + DMC + Doma TV + DUTV + DW English + E! Europe + Epic Drama + Euronews English + ExtraTV + Extreme Sports Channel + FashionTV Europe + Federalna TV + Fight Channel + Fox Crime Hrvatska + Fox Hrvatska + Fox Life Hrvatska + Fox Movies Hrvatska + France 24 English + France 24 Français + GameHub + Grand TV + Happy + Hayat + HBO 2 Central Europe + HBO 3 Central Europe + HBO Adria + History 2 Polska + History Europe + HIT TV + HNTV + HRT 1 + HRT 2 + HRT 3 + HRT 4 + Hustler TV Europe + Jugoton TV + Kanal Ri + KiKA + Kino TV + Klasik TV + Kreator TV + Laudato TV + Libertas TV + Lov i Ribolov + Luxe TV + M1 Film + M1 Gold + MAXtv Promo Kanal + María+Visión Medjugorje + Mediaset Italia + Mini TV + Mreža TV + MTV 00s + MTV 80s + MTV Hits Europe + MyZen TV + N1 Hrvatska + Narodni TV + National Geographic Hrvatska + National Geographic Wild Europe + Nautical Channel + Nick Jr Central & Eastern Europe + Nickelodeon Europe + Nickelodeon HD + NickMusic + Nicktoons România + Nova TV + Osječka TV + OTV + OTV Valentino + Pickbox TV + Pikaboo + Pink + Pink BH + Pink Extra + Pink Fashion + Pink Film + Pink Folk 1 + Pink Koncert + Pink M + Pink Music + Pink Music 2 + Pink Plus + Pink World + Plava Vinkovačka + Poljoprivredna TV + Private TV + ProSieben Deutschland + Rai 1 + Rai 2 + Rai 3 + Rai Scuola + RT + RTL 2 Hrvatska + RTL Crime Hrvatska + RTL Deutschland + RTL Hrvatska + RTL Kockica Hrvatska + RTL Living Hrvatska + RTL Passion Hrvatska + RTL Zwei Deutschland + RTS 1 + RTS 2 + RTS 3 + RTS Svet + Sat.1 Deutschland + SBTV + Sky News UK + Slavonska TV + Sport 1 + Sport Klub 1 Hrvatska + Sport Klub 10 + Sport Klub 2 Srbija + Sport Klub 3 + Sport Klub 4 + Sport Klub 5 + Sport Klub 6 + Sport Klub 7 + Sport Klub 8 + Sport Klub 9 + Sport Klub Esports + Sport Klub Golf + Sport Klub Start + SPTV + Stingray Classica + Stingray Djazz + Super RTL Deutschland + Televizija Dalmacija + Toon Kids + Trend TV + TRT World + TV Jadran + TV Koper-Capodistria + TV Nova + TV Sabor + TV Slovenija 1 + TV Slovenija 2 + TV Zapad + TV Šibenik + TV1000 Balkan + TV5Monde Europe + TVCG Sat + TVE Internacional Europa + Vavoom + Viasat Explore East + Viasat History Hrvatska + Viasat Nature East + Vivid Red + Vivid Touch + Vivid TV Europe + Vox Deutschland + VTV + Woman + Z1 + ZDF + Zdrava TV + НТВ Мир + + \ No newline at end of file diff --git a/sites/maxtv.hrvatskitelekom.hr.config.js b/sites/maxtv.hrvatskitelekom.hr.config.js new file mode 100644 index 00000000..21176964 --- /dev/null +++ b/sites/maxtv.hrvatskitelekom.hr.config.js @@ -0,0 +1,46 @@ +const dayjs = require('dayjs') + +module.exports = { + lang: 'hr', + site: 'maxtv.hrvatskitelekom.hr', + channels: 'maxtv.hrvatskitelekom.hr.channels.xml', + output: '.gh-pages/guides/maxtv.hrvatskitelekom.hr.guide.xml', + request: { + method: 'POST', + data: function ({ channel, date }) { + return { + channelList: [channel.site_id], + startDate: date.startOf('d').unix(), + endDate: date.endOf('d').unix() + } + } + }, + url: function ({ date, channel }) { + return `https://player.maxtvtogo.tportal.hr:8082/OTT4Proxy/proxy/epg/shows` + }, + logo: function ({ content }) { + const json = JSON.parse(content) + return json.data ? json.data[0].logo : null + }, + parser: function ({ content }) { + const programs = [] + const json = JSON.parse(content) + if (!json.data) return programs + + const items = json.data[0].shows + items.forEach(item => { + if (item.title && item.startTime && item.endTime) { + const start = dayjs.unix(item.startTime) + const stop = dayjs.unix(item.endTime) + programs.push({ + title: item.title, + category: item.category, + start: start.toString(), + stop: stop.toString() + }) + } + }) + + return programs + } +}