mirror of
https://github.com/iptv-org/epg
synced 2025-12-17 02:47:02 -05:00
Adds option to change the delay between requests
This commit is contained in:
@@ -43,6 +43,11 @@ export class Grabber {
|
||||
config.request = { ...config.request, ...{ timeout } }
|
||||
}
|
||||
|
||||
if (this.options.delay !== undefined) {
|
||||
const delay = parseInt(this.options.delay)
|
||||
config.delay = delay
|
||||
}
|
||||
|
||||
const grabber =
|
||||
process.env.NODE_ENV === 'test' ? new EPGGrabberMock(config) : new EPGGrabber(config)
|
||||
const _programs = await grabber.grab(
|
||||
|
||||
Reference in New Issue
Block a user