From 70a9af0c4e04c423c9ac5a3d65733f609c74972f Mon Sep 17 00:00:00 2001 From: cruizno Date: Sat, 17 Feb 2024 23:44:04 -0600 Subject: [PATCH] Update tvguide.com.config.js --- sites/tvguide.com/tvguide.com.config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sites/tvguide.com/tvguide.com.config.js b/sites/tvguide.com/tvguide.com.config.js index 628830fc..5ddddf8b 100644 --- a/sites/tvguide.com/tvguide.com.config.js +++ b/sites/tvguide.com/tvguide.com.config.js @@ -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)