Resolves issue reported in #2301

This commit is contained in:
sicilykill 2024-01-20 11:29:53 -06:00
parent d86d0c8711
commit 109be00bbc
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@ module.exports = {
delay: 1500, // 1500 ms (otherwise the server returns error 429: https://github.com/iptv-org/epg/issues/2176) delay: 1500, // 1500 ms (otherwise the server returns error 429: https://github.com/iptv-org/epg/issues/2176)
days: 2, days: 2,
url: function ({ date, channel }) { url: function ({ date, channel }) {
return `https://www.tvtv.us/api/v1/lineup/USA-NY71652-DEFAULT/grid/${date.toJSON()}/${date return `https://www.tvtv.us/api/v1/lineup/USA-NY71652-X/grid/${date.toJSON()}/${date
.add(1, 'd') .add(1, 'd')
.toJSON()}/${channel.site_id}` .toJSON()}/${channel.site_id}`
}, },

View file

@ -14,7 +14,7 @@ const channel = {
it('can generate valid url', () => { it('can generate valid url', () => {
expect(url({ channel, date })).toBe( expect(url({ channel, date })).toBe(
'https://www.tvtv.us/api/v1/lineup/USA-NY71652-DEFAULT/grid/2022-09-20T00:00:00.000Z/2022-09-21T00:00:00.000Z/62670' 'https://www.tvtv.us/api/v1/lineup/USA-NY71652-X/grid/2022-09-20T00:00:00.000Z/2022-09-21T00:00:00.000Z/62670'
) )
}) })