From c74beecd667482c55d3f343568df72e0ac1820a1 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Mon, 14 Nov 2022 11:33:06 +0300 Subject: [PATCH] Update epg.i-cable.com.config.js --- sites/epg.i-cable.com/epg.i-cable.com.config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sites/epg.i-cable.com/epg.i-cable.com.config.js b/sites/epg.i-cable.com/epg.i-cable.com.config.js index 3e081e9a..36c11aa2 100644 --- a/sites/epg.i-cable.com/epg.i-cable.com.config.js +++ b/sites/epg.i-cable.com/epg.i-cable.com.config.js @@ -12,6 +12,11 @@ const API_ENDPOINT = 'http://epg.i-cable.com/ci/channel' module.exports = { site: 'epg.i-cable.com', + request: { + cache: { + ttl: 60 * 60 * 1000 // 1h + } + }, url: function ({ channel, date }) { return `${API_ENDPOINT}/epg/${channel.site_id}/${date.format('YYYY-MM-DD')}?api=api` },