mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update canalplus-reunion.com.config.js
This commit is contained in:
parent
43ded66833
commit
6ed1b3d072
1 changed files with 4 additions and 1 deletions
|
@ -1,9 +1,12 @@
|
|||
const dayjs = require('dayjs')
|
||||
const utc = require('dayjs/plugin/utc')
|
||||
|
||||
dayjs.extend(utc)
|
||||
|
||||
module.exports = {
|
||||
site: 'canalplus-reunion.com',
|
||||
url: function ({ channel, date }) {
|
||||
const diff = date.diff(dayjs().startOf('d'), 'd')
|
||||
const diff = date.diff(dayjs.utc().startOf('d'), 'd')
|
||||
|
||||
return `https://service.canal-overseas.com/ott-frontend/vector/63001/channel/${channel.site_id}/events?filter.day=${diff}`
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue