Update ontvtonight.com.config.js

This commit is contained in:
Aleksandr Statciuk 2021-11-25 19:24:36 +03:00
parent cf4308d5ba
commit 67809aa894

View file

@ -40,6 +40,10 @@ module.exports = {
const $item = cheerio.load(item)
const start = parseStart($item, date, channel)
if (prev) {
if (start.isBefore(prev.start)) {
start = start.add(1, 'd')
date = date.add(1, 'd')
}
prev.stop = start
}
const stop = start.add(1, 'h')