mirror of
https://github.com/iptv-org/epg
synced 2025-12-17 02:47:02 -05:00
Update tv.mail.ru.config.js
This commit is contained in:
@@ -34,7 +34,7 @@ module.exports = {
|
|||||||
let start = parseStart(item, date)
|
let start = parseStart(item, date)
|
||||||
if (start.hour() > 11) PM = true
|
if (start.hour() > 11) PM = true
|
||||||
if (start.hour() < 12 && PM) start = start.add(1, 'd')
|
if (start.hour() < 12 && PM) start = start.add(1, 'd')
|
||||||
const stop = parseStop(item, date)
|
const stop = start.add(1, 'h')
|
||||||
if (programs.length) {
|
if (programs.length) {
|
||||||
programs[programs.length - 1].stop = start
|
programs[programs.length - 1].stop = start
|
||||||
}
|
}
|
||||||
@@ -51,10 +51,6 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function parseStop(item, date) {
|
|
||||||
return date.tz('Europe/Moscow').endOf('d').add(6, 'h')
|
|
||||||
}
|
|
||||||
|
|
||||||
function parseStart(item, date) {
|
function parseStart(item, date) {
|
||||||
const time = `${date.format('MM/DD/YYYY')} ${item.start}`
|
const time = `${date.format('MM/DD/YYYY')} ${item.start}`
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user