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