Added guide from telkussa.fi

This commit is contained in:
freearhey 2021-04-25 00:37:02 +03:00
parent 7f6bc90ec3
commit bb1274499c
4 changed files with 109 additions and 0 deletions

View file

@ -4,6 +4,23 @@ on:
schedule: schedule:
- cron: '0 0 * * *' - cron: '0 0 * * *'
jobs: jobs:
telkussa_fi:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install Dependencies
run: npm install
- name: Run EPG Grabber
run: npx epg-grabber --config=sites/telkussa.fi.config.js
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4.1.1
with:
branch: gh-pages
folder: .gh-pages
clean: false
andorradifusio_ad: andorradifusio_ad:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:

View file

@ -23,6 +23,7 @@ To load a program guide, all you need to do is copy the link to one of the guide
<tr><td align="left" nowrap>🇨🇴 Colombia</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/mi.tv.guide.xml</code></td></tr> <tr><td align="left" nowrap>🇨🇴 Colombia</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/mi.tv.guide.xml</code></td></tr>
<tr><td align="left" nowrap>🇨🇿 Czechia</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/m.tv.sms.cz.guide.xml</code></td></tr> <tr><td align="left" nowrap>🇨🇿 Czechia</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/m.tv.sms.cz.guide.xml</code></td></tr>
<tr><td align="left" nowrap>🇸🇻 El Salvador</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/mi.tv.guide.xml</code></td></tr> <tr><td align="left" nowrap>🇸🇻 El Salvador</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/mi.tv.guide.xml</code></td></tr>
<tr><td align="left" nowrap>🇫🇮 Finland</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/telkussa.fi.guide.xml</code></td></tr>
<tr><td align="left" nowrap>🇫🇷 France</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/programme-tv.net.guide.xml</code></td></tr> <tr><td align="left" nowrap>🇫🇷 France</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/programme-tv.net.guide.xml</code></td></tr>
<tr><td align="left" nowrap>🇩🇪 Germany</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/hd-plus.de.guide.xml</code></td></tr> <tr><td align="left" nowrap>🇩🇪 Germany</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/hd-plus.de.guide.xml</code></td></tr>
<tr><td align="left" nowrap>🇬🇷 Greece</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/cosmote.gr.guide.xml</code></td></tr> <tr><td align="left" nowrap>🇬🇷 Greece</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/cosmote.gr.guide.xml</code></td></tr>
@ -40,6 +41,7 @@ To load a program guide, all you need to do is copy the link to one of the guide
<tr><td align="left" nowrap>🇷🇴 Romania</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/programetv.ro.guide.xml</code></td></tr> <tr><td align="left" nowrap>🇷🇴 Romania</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/programetv.ro.guide.xml</code></td></tr>
<tr><td align="left" nowrap>🇷🇺 Russia</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/tv.yandex.ru.guide.xml</code></td></tr> <tr><td align="left" nowrap>🇷🇺 Russia</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/tv.yandex.ru.guide.xml</code></td></tr>
<tr><td align="left" nowrap>🇪🇸 Spain</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/programacion-tv.elpais.com.guide.xml</code></td></tr> <tr><td align="left" nowrap>🇪🇸 Spain</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/programacion-tv.elpais.com.guide.xml</code></td></tr>
<tr><td align="left" nowrap>🇸🇪 Sweden</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/telkussa.fi.guide.xml</code></td></tr>
<tr><td align="left" nowrap>🇹🇷 Turkey</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/digiturk.com.tr.guide.xml</code></td></tr> <tr><td align="left" nowrap>🇹🇷 Turkey</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/digiturk.com.tr.guide.xml</code></td></tr>
<tr><td align="left" nowrap>🇺🇦 Ukraine</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/tvgid.ua.guide.xml</code></td></tr> <tr><td align="left" nowrap>🇺🇦 Ukraine</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/tvgid.ua.guide.xml</code></td></tr>
<tr><td align="left" nowrap>🇬🇧 United Kingdom</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/ontvtonight.com.guide.xml</code></td></tr> <tr><td align="left" nowrap>🇬🇧 United Kingdom</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/ontvtonight.com.guide.xml</code></td></tr>

55
sites/telkussa.fi.channels.xml Executable file
View file

@ -0,0 +1,55 @@
<?xml version="1.0" encoding="UTF-8"?>
<site site="telkussa.fi">
<channels>
<channel site_id="117" xmltv_id="AlfaTV.fi">AlfaTV</channel>
<channel site_id="9" xmltv_id="AnimalPlanetEurope.us">Animal Planet Europe</channel>
<channel site_id="60" xmltv_id="AVA.fi">AVA</channel>
<channel site_id="66" xmltv_id="BBCEarthNordic.uk">BBC Earth Nordic</channel>
<channel site_id="7" xmltv_id="BBCEntertainmentEurope.uk">BBC Entertainment Europe</channel>
<channel site_id="17" xmltv_id="CMoreFirst.se">C More First</channel>
<channel site_id="18" xmltv_id="CMoreHits.se">C More Hits</channel>
<channel site_id="74" xmltv_id="CMoreJuniori.se">C More Juniori</channel>
<channel site_id="30" xmltv_id="CMoreMax.se">C More Max</channel>
<channel site_id="57" xmltv_id="CMoreSeries.se">C More Series</channel>
<channel site_id="105" xmltv_id="CMoreSport1.se">C More Sport 1</channel>
<channel site_id="106" xmltv_id="CMoreSport2.se">C More Sport 2</channel>
<channel site_id="122" xmltv_id="CMoreStars.se">C More Stars</channel>
<channel site_id="6" xmltv_id="DiscoveryChannelFinland.us">Discovery Channel Finland</channel>
<channel site_id="46" xmltv_id="DisneyChannelScandinavia.us">Disney Channel Scandinavia</channel>
<channel site_id="49" xmltv_id="Eurosport1Finland.fr">Eurosport 1 Finland</channel>
<channel site_id="50" xmltv_id="Eurosport2Sverige.fr">Eurosport 2 Sverige</channel>
<channel site_id="77" xmltv_id="FoxFinland.us">Fox Finland</channel>
<channel site_id="104" xmltv_id="Frii.fi">Frii</channel>
<channel site_id="103" xmltv_id="Hero.fi">Hero</channel>
<channel site_id="56" xmltv_id="Jim.fi">Jim</channel>
<channel site_id="64" xmltv_id="Kutonen.fi">Kutonen</channel>
<channel site_id="63" xmltv_id="Liv.fi">Liv</channel>
<channel site_id="32" xmltv_id="MTVNordic.us">MTV Nordic</channel>
<channel site_id="3" xmltv_id="MTV3.fi">MTV3</channel>
<channel site_id="47" xmltv_id="NationalGeographicScandinavia.us">National Geographic Scandinavia</channel>
<channel site_id="4" xmltv_id="Nelonen.fi">Nelonen</channel>
<channel site_id="121" xmltv_id="ParamountNetworkFinland.us">Paramount Network Finland</channel>
<channel site_id="116" xmltv_id="SFkanalen.se">SF-kanalen</channel>
<channel site_id="27" xmltv_id="Sjuan.se">Sjuan</channel>
<channel site_id="5" xmltv_id="Sub.fi">Sub</channel>
<channel site_id="12" xmltv_id="TLCFinland.us">TLC Finland</channel>
<channel site_id="22" xmltv_id="TVFinland.fi">TV Finland</channel>
<channel site_id="26" xmltv_id="TV4.se">TV4</channel>
<channel site_id="88" xmltv_id="TV5.fi">TV5</channel>
<channel site_id="65" xmltv_id="TV7.fi">TV7</channel>
<channel site_id="35" xmltv_id="VFilmAction.se">V Film Action</channel>
<channel site_id="36" xmltv_id="VFilmFamily.se">V Film Family</channel>
<channel site_id="114" xmltv_id="VFilmHits.se">V Film Hits</channel>
<channel site_id="33" xmltv_id="VFilmPremiere.se">V Film Premiere</channel>
<channel site_id="86" xmltv_id="VSport.se">V Sport</channel>
<channel site_id="113" xmltv_id="VSportFootball.se">V Sport Football</channel>
<channel site_id="83" xmltv_id="VSportGolf.se">V Sport Golf</channel>
<channel site_id="102" xmltv_id="VSportHockey.se">V Sport Hockey</channel>
<channel site_id="112" xmltv_id="VSportJalkapallo.se">V Sport Jalkapallo</channel>
<channel site_id="111" xmltv_id="VSportJaakiekko.se">V Sport Jääkiekko</channel>
<channel site_id="87" xmltv_id="ViasatSportHD.se">Viasat Sport HD</channel>
<channel site_id="13" xmltv_id="YleTeemaFem.fi">Yle Teema &amp; Fem</channel>
<channel site_id="1" xmltv_id="YleTV1.fi">Yle TV1</channel>
<channel site_id="2" xmltv_id="YleTV2.fi">Yle TV2</channel>
</channels>
</site>

View file

@ -0,0 +1,35 @@
const dayjs = require('dayjs')
module.exports = {
lang: 'fi',
site: 'telkussa.fi',
channels: 'telkussa.fi.channels.xml',
output: '.gh-pages/guides/telkussa.fi.guide.xml',
url: function ({ date, channel }) {
return `https://telkussa.fi/API/Channel/${channel.site_id}/${date.format('YYYYMMDD')}`
},
logo: function ({ channel }) {
return `https://telkussa.fi/images/chan${channel.site_id}@3x.png`
},
parser: function ({ content, date, channel }) {
const programs = []
const items = JSON.parse(content)
if (!items.length) return programs
items.forEach(item => {
if (item.name && item.start && item.stop) {
const start = dayjs.unix(parseInt(item.start) * 60)
const stop = dayjs.unix(parseInt(item.stop) * 60)
programs.push({
title: item.name,
description: item.description,
start: start.toString(),
stop: stop.toString()
})
}
})
return programs
}
}