From 4198ea18abe27d2d5f3ea6bfd63fef9a301a17d3 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Fri, 24 Sep 2021 15:59:55 +0300 Subject: [PATCH] Update m.tv.sms.cz.config.js --- sites/m.tv.sms.cz.config.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sites/m.tv.sms.cz.config.js b/sites/m.tv.sms.cz.config.js index 6593f164..c0fae4ac 100644 --- a/sites/m.tv.sms.cz.config.js +++ b/sites/m.tv.sms.cz.config.js @@ -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()