mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update ontvtonight.com.config.js
This commit is contained in:
parent
cf4308d5ba
commit
67809aa894
1 changed files with 4 additions and 0 deletions
|
@ -40,6 +40,10 @@ module.exports = {
|
||||||
const $item = cheerio.load(item)
|
const $item = cheerio.load(item)
|
||||||
const start = parseStart($item, date, channel)
|
const start = parseStart($item, date, channel)
|
||||||
if (prev) {
|
if (prev) {
|
||||||
|
if (start.isBefore(prev.start)) {
|
||||||
|
start = start.add(1, 'd')
|
||||||
|
date = date.add(1, 'd')
|
||||||
|
}
|
||||||
prev.stop = start
|
prev.stop = start
|
||||||
}
|
}
|
||||||
const stop = start.add(1, 'h')
|
const stop = start.add(1, 'h')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue