mirror of
https://github.com/iptv-org/epg
synced 2025-12-20 12:26:58 -05:00
Merge pull request #81 from iptv-org/fix-tvguide-com
Update tvguide.com.config.js
This commit is contained in:
@@ -11,10 +11,9 @@ module.exports = {
|
||||
channels: 'tvguide.com.channels.xml',
|
||||
output: '.gh-pages/guides/tvguide.com.guide.xml',
|
||||
url: function ({ date, channel }) {
|
||||
const localTime = date.tz('America/New_York')
|
||||
const parts = channel.site_id.split('#')
|
||||
const start = localTime.startOf('d')
|
||||
const duration = localTime.endOf('d').diff(start, 'm')
|
||||
const start = date.startOf('d')
|
||||
const duration = date.endOf('d').diff(start, 'm')
|
||||
const url = `https://cmg-prod.apigee.net/v1/xapi/tvschedules/tvguide/${
|
||||
parts[0]
|
||||
}/web?start=${start.unix()}&duration=${duration}&channelSourceIds=${parts[1]}`
|
||||
|
||||
Reference in New Issue
Block a user