From 0b815608f602deb2e26a290c02cde4bf7b229928 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Tue, 3 May 2022 19:29:20 +0300 Subject: [PATCH] Update i.mjh.nz.config.js --- sites/i.mjh.nz/i.mjh.nz.config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sites/i.mjh.nz/i.mjh.nz.config.js b/sites/i.mjh.nz/i.mjh.nz.config.js index f50071ab..a58f4f16 100644 --- a/sites/i.mjh.nz/i.mjh.nz.config.js +++ b/sites/i.mjh.nz/i.mjh.nz.config.js @@ -9,12 +9,17 @@ dayjs.extend(customParseFormat) module.exports = { site: 'i.mjh.nz', + request: { + cache: { + ttl: 6 * 60 * 60 * 1000 // 6h + } + }, url: function ({ channel }) { const [source] = channel.site_id.split('#') return `https://raw.githubusercontent.com/matthuisman/i.mjh.nz/master/${source}.xml` }, - parser: function ({ content, channel, date }) { + parser: function ({ content, channel, date, cached }) { let programs = [] const items = parseItems(content, channel, date) items.forEach(item => {