mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update sky.com.config.js
This commit is contained in:
parent
dfdac39bb4
commit
4aad8125f5
1 changed files with 12 additions and 14 deletions
|
@ -25,20 +25,18 @@ module.exports = {
|
||||||
.filter(schedule => schedule.sid === channel.site_id)
|
.filter(schedule => schedule.sid === channel.site_id)
|
||||||
.forEach(schedule => {
|
.forEach(schedule => {
|
||||||
if (Array.isArray(schedule.events)) {
|
if (Array.isArray(schedule.events)) {
|
||||||
schedule.events
|
schedule.events.forEach(event => {
|
||||||
.forEach(event => {
|
const start = dayjs.utc(event.st * 1000)
|
||||||
const start = dayjs.utc(event.st * 1000)
|
if (start.isSame(date, 'd')) {
|
||||||
if (start.isSame(date, 'd')) {
|
programs.push({
|
||||||
programs.push({
|
title: event.t,
|
||||||
title: event.t,
|
description: event.sy,
|
||||||
description: event.sy,
|
season: event.seasonnumber,
|
||||||
season: event.seasonnumber,
|
episode: event.episodenumber,
|
||||||
episode: event.episodenumber,
|
start,
|
||||||
start,
|
stop: start.add(event.d, 's')
|
||||||
stop: start.add(event.d, 's')
|
})
|
||||||
})
|
}
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue