Update epg.i-cable.com.config.js

This commit is contained in:
Aleksandr Statciuk 2022-11-14 11:33:06 +03:00
parent 4cb3c54391
commit c74beecd66

View file

@ -12,6 +12,11 @@ const API_ENDPOINT = 'http://epg.i-cable.com/ci/channel'
module.exports = { module.exports = {
site: 'epg.i-cable.com', site: 'epg.i-cable.com',
request: {
cache: {
ttl: 60 * 60 * 1000 // 1h
}
},
url: function ({ channel, date }) { url: function ({ channel, date }) {
return `${API_ENDPOINT}/epg/${channel.site_id}/${date.format('YYYY-MM-DD')}?api=api` return `${API_ENDPOINT}/epg/${channel.site_id}/${date.format('YYYY-MM-DD')}?api=api`
}, },