mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
commit
3d4ced9e88
2 changed files with 3 additions and 2 deletions
|
@ -5,9 +5,11 @@ https://www.tvtv.us/
|
||||||
### Download the guide
|
### Download the guide
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm run grab --- --site=tvtv.us
|
npm run grab --- --site=tvtv.us --delay=2000
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**IMPORTANT:** Keep in mind that with a large number of requests the server may start responding with the error [429 Too Many Requests](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429). In this case, try increasing the `--delay` (1000 = 1 second) or create a [custom channel list](https://github.com/iptv-org/epg?tab=readme-ov-file#use-custom-channel-list) with only the channels you need.
|
||||||
|
|
||||||
### Test
|
### Test
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|
|
@ -5,7 +5,6 @@ dayjs.extend(utc)
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
site: 'tvtv.us',
|
site: 'tvtv.us',
|
||||||
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 }) {
|
||||||
if (!dayjs.isDayjs(date)) {
|
if (!dayjs.isDayjs(date)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue