mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 16:40:07 -04:00
Update tvgids.nl.config.js
This commit is contained in:
parent
0beb51c5cd
commit
73bb824188
1 changed files with 1 additions and 3 deletions
|
@ -3,16 +3,14 @@ const axios = require('axios')
|
||||||
const dayjs = require('dayjs')
|
const dayjs = require('dayjs')
|
||||||
const utc = require('dayjs/plugin/utc')
|
const utc = require('dayjs/plugin/utc')
|
||||||
const timezone = require('dayjs/plugin/timezone')
|
const timezone = require('dayjs/plugin/timezone')
|
||||||
const isToday = require('dayjs/plugin/isToday')
|
|
||||||
|
|
||||||
dayjs.extend(utc)
|
dayjs.extend(utc)
|
||||||
dayjs.extend(isToday)
|
|
||||||
dayjs.extend(timezone)
|
dayjs.extend(timezone)
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
site: 'tvgids.nl',
|
site: 'tvgids.nl',
|
||||||
url: function ({ date, channel }) {
|
url: function ({ date, channel }) {
|
||||||
const path = date.isToday() ? '' : `${date.format('DD-MM-YYYY')}/`
|
const path = dayjs.utc().isSame(date, 'd') ? '' : `${date.format('DD-MM-YYYY')}/`
|
||||||
|
|
||||||
return `https://www.tvgids.nl/gids/${path}${channel.site_id}`
|
return `https://www.tvgids.nl/gids/${path}${channel.site_id}`
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue