mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 09:00:07 -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('M', date.get('M'))
|
||||||
.set('y', date.get('y'))
|
.set('y', date.get('y'))
|
||||||
|
|
||||||
|
let stop = null
|
||||||
|
if (durationContent) {
|
||||||
const durationInMilliseconds = parseDuration(durationContent)
|
const durationInMilliseconds = parseDuration(durationContent)
|
||||||
const stop = start.add(dayjs.duration(durationInMilliseconds))
|
stop = start.add(dayjs.duration(durationInMilliseconds)).toString()
|
||||||
|
}
|
||||||
|
|
||||||
programs.push({
|
programs.push({
|
||||||
title,
|
title,
|
||||||
category,
|
category,
|
||||||
start: start.toString(),
|
start: start.toString(),
|
||||||
stop: stop.toString()
|
stop
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue