diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml index c7cec1a3..7f9fb91c 100644 --- a/.github/workflows/auto-update.yml +++ b/.github/workflows/auto-update.yml @@ -19,6 +19,21 @@ jobs: branch: gh-pages folder: .gh-pages clean: false + programacion-tv.elpais.com: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2.3.1 + - name: Install Dependencies + run: npm install + - name: Run EPG Grabber + run: npx epg-grabber --config=sites/programacion-tv.elpais.com.config.js + - name: Deploy to GitHub Pages + uses: JamesIves/github-pages-deploy-action@4.1.0 + with: + branch: gh-pages + folder: .gh-pages + clean: false mediaset_it: runs-on: ubuntu-latest steps: diff --git a/README.md b/README.md index 43dd482a..b020d462 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ To load a program guide, all you need to do is copy the link to one of the guide ontvtonight.comen122https://iptv-org.github.io/epg/guides/ontvtonight.com.guide.xml + programacion-tv.elpais.comes158https://iptv-org.github.io/epg/guides/programacion-tv.elpais.com.guide.xml programme-tv.netfr266https://iptv-org.github.io/epg/guides/programme-tv.net.guide.xml mediaset.itit16https://iptv-org.github.io/epg/guides/mediaset.it.guide.xml tv.yandex.ruru378https://iptv-org.github.io/epg/guides/tv.yandex.ru.guide.xml diff --git a/sites/programacion-tv.elpais.com.channels.xml b/sites/programacion-tv.elpais.com.channels.xml new file mode 100755 index 00000000..0b3f2049 --- /dev/null +++ b/sites/programacion-tv.elpais.com.channels.xml @@ -0,0 +1,163 @@ + + + + Telecinco + Odisea + Euronews en Español + Discovery Channel en Español + Historia España + National Geographic España + Eurosport España + Barça TV + Real Madrid TV Español + MTV España + MTV 90s + MTV Hits + VH1 Europe + Sol Música + Disney Channel España + La 1 Catalunya + Canal Cocina + Cosmopolitan TV España + Viajar + EWTN España + Antena 3 + Nickelodeon en Español + FOX España + CNN Internacional + CNBC Europe + Deutsche Welle Español + BBC World News + TV5 Monde + betevé + 8TV + Disney Channel España +1 + Disney Junior España + CMM + La 1 + Canal Sur + Canal Sur Andalucía + TeleElx + Andalucía TV + CyLTV + ETB 1 + Movistar Golf + Mezzo + ETB 2 + ETB 4 + Televisión de Galicia + Movistar Deportes + Telemadrid + Movistar Cine Español + Caza y Pesca + La Otra + Motorsport.tv + La 2 + TelevisiónCanaria + TV Chile + TV3 + 3/24 + TVE Internacional Europa + Club MTV + TV3CAT + DMAX España + AMC España + Eurosport 2 España + Blaze España + Comedy Central España + Cuatro + Somos + Clan TVE + FDF + Neox + Nova + laSexta + AXN White España + El Toro TV + IB3 + Syfy España + TPA + Aragón TV + Al Jazeera English + Super3 + Extreme Sports Channel + 7 Región de Murcia + Caracol TV + Cubavisión Internacional + Pro TV Internacional + Decasa + BabyTV Español + TNT España + Canal Extremadura TV + TCM España + Libertad Digital TV + Canal Parlamento + France 24 Español + Canal Hollywood España + TV Colombia + teleSUR + Record TV Europa + CGTN Español + MTV Music 24 + TCM España +1 + ZTV + AXN España + Calle 13 + La 8 + Ve Plus TV + Iberalia TV + Cazavisión + Fox Life España + Boing España + TVE Internacional Asia + Canal Hollywood España +1 + Esport3 + XTRM + National Geographic Wild HD España + RT Español + Nick Jr España + TRECE TV + La 1 HD + Crimen + Investigación + Divinity + Canal Panda España + Sundance TV España + MTV Live + VH1 Classic + Energy + Paramount Network España + Mezzo Live + Onda Algeciras Televisión + Popular TV Región de Murcia + Navarra Televisión + tvG2 + National Geographic Wild España + Garage TV + El Trece Internacional + i24 News English + ETB 3 + Movistar F1 + Canal 24 horas + MotoGP + Tarotéame + TV Mediterráneo + Non Stop People España + beIN SPORTS en Español + Mega + Movistar Series + Movistar Estrenos + Movistar Acción + Movistar Comedia + Viral TV + La 8 Burgos + Partidazo + Atreseries + TEN TV + Be Mad + DKISS + beIN LaLiga + GOL + Teledeporte + Dark + + \ No newline at end of file diff --git a/sites/programacion-tv.elpais.com.config.js b/sites/programacion-tv.elpais.com.config.js new file mode 100644 index 00000000..3bd1b1e0 --- /dev/null +++ b/sites/programacion-tv.elpais.com.config.js @@ -0,0 +1,34 @@ +const dayjs = require('dayjs') +const utc = require('dayjs/plugin/utc') + +dayjs.extend(utc) + +module.exports = { + lang: 'es', + site: 'programacion-tv.elpais.com', + channels: 'programacion-tv.elpais.com.channels.xml', + output: '.gh-pages/guides/programacion-tv.elpais.com.guide.xml', + url: function ({ date }) { + return `https://programacion-tv.elpais.com/data/parrilla_${date.format('DDMMYYYY')}.json` + }, + parser: function ({ content, date, channel }) { + const programs = [] + const channelData = content.find(i => i.idCanal === channel.site_id) + if (!channelData) return programs + channelData.programas.forEach(item => { + if (item.title && item.iniDate && item.endDate) { + const start = dayjs.utc(item.iniDate).toString() + const stop = dayjs.utc(item.endDate).toString() + programs.push({ + title: item.title, + description: item.description, + category: item.txtSection, + start, + stop + }) + } + }) + + return programs + } +}