Move sites into a folders

This commit is contained in:
Aleksandr Statciuk
2021-10-15 03:31:13 +03:00
parent b92feaf2b6
commit 6955909ee4
97 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
const dayjs = require('dayjs')
module.exports = {
site: 'telkussa.fi',
request: {
timeout: 10000
},
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
}
}

View File

@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<site site="telkussa.fi">
<channels>
<channel lang="fi" xmltv_id="AnimalPlanetEurope.us" site_id="9">Animal Planet Europe</channel>
<channel lang="fi" xmltv_id="CMoreFirst.se" site_id="17">C More First</channel>
<channel lang="fi" xmltv_id="CMoreHits.se" site_id="18">C More Hits</channel>
<channel lang="fi" xmltv_id="CMoreJuniori.se" site_id="74">C More Juniori</channel>
<channel lang="fi" xmltv_id="CMoreMax.se" site_id="30">C More Max</channel>
<channel lang="fi" xmltv_id="CMoreSeries.se" site_id="57">C More Series</channel>
<channel lang="fi" xmltv_id="CMoreSport1.se" site_id="105">C More Sport 1</channel>
<channel lang="fi" xmltv_id="CMoreSport2.se" site_id="106">C More Sport 2</channel>
<channel lang="fi" xmltv_id="CMoreStars.se" site_id="122">C More Stars</channel>
<channel lang="fi" xmltv_id="DiscoveryChannelFinland.us" site_id="6">Discovery Channel Finland</channel>
<channel lang="fi" xmltv_id="DisneyChannelScandinavia.us" site_id="46">Disney Channel Scandinavia</channel>
<channel lang="fi" xmltv_id="Eurosport1Finland.fr" site_id="49">Eurosport 1 Finland</channel>
<channel lang="fi" xmltv_id="Eurosport1Sverige.fr" site_id="50">Eurosport 1 Sverige</channel>
<channel lang="fi" xmltv_id="Jim.fi" site_id="56">Jim</channel>
<channel lang="fi" xmltv_id="Liv.fi" site_id="63">Liv</channel>
<channel lang="fi" xmltv_id="MTV3.fi" site_id="3">MTV 3</channel>
<channel lang="fi" xmltv_id="MTVNordic.us" site_id="32">MTV Nordic</channel>
<channel lang="fi" xmltv_id="NationalGeographicScandinavia.us" site_id="47">National Geographic Scandinavia</channel>
<channel lang="fi" xmltv_id="Nelonen.fi" site_id="4">Nelonen</channel>
<channel lang="fi" xmltv_id="ParamountNetworkSverige.us" site_id="121">Paramount Network Sverige</channel>
<channel lang="fi" xmltv_id="SFkanalen.se" site_id="116">SF-kanalen</channel>
<channel lang="fi" xmltv_id="Sjuan.se" site_id="27">Sjuan</channel>
<channel lang="fi" xmltv_id="Sub.fi" site_id="5">Sub</channel>
<channel lang="fi" xmltv_id="TLCSverige.us" site_id="12">TLC Sverige</channel>
<channel lang="fi" xmltv_id="TV4.se" site_id="26">TV 4</channel>
<channel lang="fi" xmltv_id="TV5.fi" site_id="88">TV 5</channel>
<channel lang="fi" xmltv_id="VFilmAction.se" site_id="35">V Film Action</channel>
<channel lang="fi" xmltv_id="VFilmFamily.se" site_id="36">V Film Family</channel>
<channel lang="fi" xmltv_id="VFilmHits.se" site_id="114">V Film Hits</channel>
<channel lang="fi" xmltv_id="VFilmPremiere.se" site_id="33">V Film Premiere</channel>
<channel lang="fi" xmltv_id="VSportFootball.se" site_id="113">V Sport Football</channel>
<channel lang="fi" xmltv_id="VSportGolf.se" site_id="83">V Sport Golf</channel>
<channel lang="fi" xmltv_id="VSportHockey.se" site_id="102">V Sport Hockey</channel>
<channel lang="fi" xmltv_id="YLETeemaFem.fi" site_id="13">YLE Teema Fem</channel>
<channel lang="fi" xmltv_id="YLETV1.fi" site_id="1">YLE TV 1</channel>
<channel lang="fi" xmltv_id="YLETV2.fi" site_id="2">YLE TV 2</channel>
</channels>
</site>