From 36b3d81400b4074bb2df05be98b89826ab41224b Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Mon, 29 Aug 2022 20:19:29 +0300 Subject: [PATCH] Update astro.com.my.config.js Caching is disabled because the server too often fails to return any response. --- sites/astro.com.my/astro.com.my.config.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sites/astro.com.my/astro.com.my.config.js b/sites/astro.com.my/astro.com.my.config.js index e439b072..5b448ae5 100644 --- a/sites/astro.com.my/astro.com.my.config.js +++ b/sites/astro.com.my/astro.com.my.config.js @@ -4,15 +4,10 @@ const utc = require('dayjs/plugin/utc') dayjs.extend(utc) module.exports = { site: 'astro.com.my', - request: { - cache: { - ttl: 6 * 60 * 60 * 1000 // 6h - } - }, url: function ({ channel }) { return `https://contenthub-api.eco.astro.com.my/channel/${channel.site_id}.json` }, - parser: function ({ content, date, cached }) { + parser: function ({ content, date }) { const programs = [] const items = parseItems(content, date) items.forEach(item => {