mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update guidatv.sky.it.config.js
This commit is contained in:
parent
b7a2b89ba4
commit
4a428c1c1c
1 changed files with 1 additions and 6 deletions
|
@ -1,13 +1,8 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
lang: 'it',
|
|
||||||
site: 'guidatv.sky.it',
|
site: 'guidatv.sky.it',
|
||||||
channels: 'guidatv.sky.it.channels.xml',
|
|
||||||
output: '.gh-pages/guides/guidatv.sky.it.guide.xml',
|
|
||||||
url: function ({ date, channel }) {
|
url: function ({ date, channel }) {
|
||||||
const [env, id] = channel.site_id.split('#')
|
const [env, id] = channel.site_id.split('#')
|
||||||
return `https://apid.sky.it/gtv/v1/events?from=${date.format(
|
return `https://apid.sky.it/gtv/v1/events?from=${date.format('YYYY-MM-DD')}T00:00:00Z&to=${date
|
||||||
'YYYY-MM-DD'
|
|
||||||
)}T00:00:00Z&to=${date
|
|
||||||
.add(1, 'd')
|
.add(1, 'd')
|
||||||
.format('YYYY-MM-DD')}T00:00:00Z&pageSize=999&pageNum=0&env=${env}&channels=${id}`
|
.format('YYYY-MM-DD')}T00:00:00Z&pageSize=999&pageNum=0&env=${env}&channels=${id}`
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue