mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update tvguide.com.config.js
This commit is contained in:
parent
a1ca6b3335
commit
70a9af0c4e
1 changed files with 3 additions and 2 deletions
|
@ -11,7 +11,7 @@ module.exports = {
|
|||
days: 2,
|
||||
url: function ({ date, channel }) {
|
||||
const [providerId, channelSourceIds] = channel.site_id.split('#')
|
||||
const url = `https://fandom-prod.apigee.net/v1/xapi/tvschedules/tvguide/${providerId}/web?start=${date
|
||||
const url = `https://internal-prod.apigee.fandom.net/v1/xapi/tvschedules/tvguide/${providerId}/web?start=${date
|
||||
.startOf('d')
|
||||
.unix()}&duration=1440&channelSourceIds=${channelSourceIds}`
|
||||
|
||||
|
@ -44,7 +44,7 @@ module.exports = {
|
|||
for (let providerId of providers) {
|
||||
const data = await axios
|
||||
.get(
|
||||
`https://fandom-prod.apigee.net/v1/xapi/tvschedules/tvguide/serviceprovider/${providerId}/sources/web`
|
||||
`https://internal-prod.apigee.fandom.net/v1/xapi/tvschedules/tvguide/serviceprovider/${providerId}/sources/web`
|
||||
)
|
||||
.then(r => r.data)
|
||||
.catch(console.log)
|
||||
|
@ -82,6 +82,7 @@ function parseItems(content) {
|
|||
}
|
||||
|
||||
async function loadProgramDetails(item) {
|
||||
item.programDetails = item.programDetails.replace('player1-backend-prod-internal.apigee.net', 'internal-prod.apigee.fandom.net')
|
||||
const data = await axios
|
||||
.get(item.programDetails)
|
||||
.then(r => r.data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue