mirror of
https://github.com/iptv-org/epg
synced 2025-12-19 03:46:41 -05:00
Add 60s cache to dsmart.com.tr epg-grabber
This commit is contained in:
@@ -6,6 +6,11 @@ dayjs.extend(utc)
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
site: 'dsmart.com.tr',
|
site: 'dsmart.com.tr',
|
||||||
days: 2,
|
days: 2,
|
||||||
|
request: {
|
||||||
|
cache: {
|
||||||
|
ttl: 60 * 1000 // 60 seconds response cache
|
||||||
|
}
|
||||||
|
},
|
||||||
url({ date, channel }) {
|
url({ date, channel }) {
|
||||||
return `https://www.dsmart.com.tr/api/v1/public/epg/schedules?page=1&limit=500&day=${date.format(
|
return `https://www.dsmart.com.tr/api/v1/public/epg/schedules?page=1&limit=500&day=${date.format(
|
||||||
'YYYY-MM-DD'
|
'YYYY-MM-DD'
|
||||||
|
|||||||
Reference in New Issue
Block a user