Merge pull request #2134 from iptv-org/fix-tvtv.us

Fix tvtv.us
This commit is contained in:
Ismaël Moret 2023-07-19 21:35:46 +02:00 committed by GitHub
commit aa3433acea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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')