mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 09:00:07 -04:00
Update mi.tv.config.js
This commit is contained in:
parent
522b27052d
commit
dc4fe4d333
1 changed files with 1 additions and 5 deletions
|
@ -35,7 +35,7 @@ module.exports = {
|
|||
if (!start) return
|
||||
if (start.hour() > 11) PM = true
|
||||
if (start.hour() < 12 && PM) start = start.add(1, 'd')
|
||||
const stop = parseStop(item, start)
|
||||
const stop = start.add(1, 'h')
|
||||
if (programs.length) {
|
||||
programs[programs.length - 1].stop = start
|
||||
}
|
||||
|
@ -51,10 +51,6 @@ module.exports = {
|
|||
}
|
||||
}
|
||||
|
||||
function parseStop(item, date) {
|
||||
return date.tz('America/Sao_Paulo').add(1, 'h')
|
||||
}
|
||||
|
||||
function parseStart(item, date) {
|
||||
let time = (item.querySelector('a > div.content > span.time') || { textContent: '' }).textContent
|
||||
if (!time) return null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue