mirror of
https://github.com/iptv-org/epg
synced 2025-12-19 11:56:58 -05:00
Update ontvtonight.com.config.js
This commit is contained in:
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user