Merge pull request #1653 from hasanakg/dsmart-epg-grabber-config

Add 60s cache to dsmart.com.tr epg-grabber
This commit is contained in:
Aleksandr Statciuk 2023-01-12 00:32:49 +03:00 committed by GitHub
commit 4e37e3d608
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,6 +6,11 @@ dayjs.extend(utc)
module.exports = {
site: 'dsmart.com.tr',
days: 2,
request: {
cache: {
ttl: 60 * 1000 // 60 seconds response cache
}
},
url({ date, channel }) {
return `https://www.dsmart.com.tr/api/v1/public/epg/schedules?page=1&limit=500&day=${date.format(
'YYYY-MM-DD'