From f8db299320bb859c4fa23b9f69695eb8e9fa5283 Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Tue, 11 Jul 2023 18:52:02 +0300 Subject: [PATCH 1/2] Update tvtv.us.test.js --- sites/tvtv.us/tvtv.us.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sites/tvtv.us/tvtv.us.test.js b/sites/tvtv.us/tvtv.us.test.js index 8d5729d0..49295624 100644 --- a/sites/tvtv.us/tvtv.us.test.js +++ b/sites/tvtv.us/tvtv.us.test.js @@ -1,4 +1,4 @@ -// npx epg-grabber --config=sites/tvtv.us/tvtv.us.config.js --channels=sites/tvtv.us/tvtv.us.channels.xml --output=guide.xml --days=2 +// npx epg-grabber --config=sites/tvtv.us/tvtv.us.config.js --channels=sites/tvtv.us/tvtv.us.channels.xml --output=guide.xml const { parser, url } = require('./tvtv.us.config.js') const dayjs = require('dayjs') From 4f18e493e41048fc1d776ad7151ee7b9351ff2f8 Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Tue, 11 Jul 2023 18:52:09 +0300 Subject: [PATCH 2/2] Update tvtv.us.config.js --- sites/tvtv.us/tvtv.us.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sites/tvtv.us/tvtv.us.config.js b/sites/tvtv.us/tvtv.us.config.js index b89715d3..81763555 100644 --- a/sites/tvtv.us/tvtv.us.config.js +++ b/sites/tvtv.us/tvtv.us.config.js @@ -4,8 +4,10 @@ const utc = require('dayjs/plugin/utc') dayjs.extend(utc) module.exports = { - skip: true, // NOTE: return an HTTP error 503 (Service Unavailable) on every request from GitHub server only (https://github.com/iptv-org/epg/issues/1172#issuecomment-1284261669) site: 'tvtv.us', + request: { + delay: 500 // 500 ms + }, days: 2, url: function ({ date, channel }) { return `https://www.tvtv.us/api/v1/lineup/USA-NY71652-DEFAULT/grid/${date.toJSON()}/${date