mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update programme-tv.net.config.js
This commit is contained in:
parent
09ab6560cf
commit
5c7eb89893
1 changed files with 6 additions and 3 deletions
|
@ -61,14 +61,17 @@ module.exports = {
|
|||
.set('M', date.get('M'))
|
||||
.set('y', date.get('y'))
|
||||
|
||||
const durationInMilliseconds = parseDuration(durationContent)
|
||||
const stop = start.add(dayjs.duration(durationInMilliseconds))
|
||||
let stop = null
|
||||
if (durationContent) {
|
||||
const durationInMilliseconds = parseDuration(durationContent)
|
||||
stop = start.add(dayjs.duration(durationInMilliseconds)).toString()
|
||||
}
|
||||
|
||||
programs.push({
|
||||
title,
|
||||
category,
|
||||
start: start.toString(),
|
||||
stop: stop.toString()
|
||||
stop
|
||||
})
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue