From dc4fe4d33384eb730b59c30bde938f21ffafc6a3 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Fri, 24 Sep 2021 15:34:42 +0300 Subject: [PATCH] Update mi.tv.config.js --- sites/mi.tv.config.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sites/mi.tv.config.js b/sites/mi.tv.config.js index 5ddaf266..ca1a3676 100644 --- a/sites/mi.tv.config.js +++ b/sites/mi.tv.config.js @@ -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