mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 16:40:07 -04:00
Update load.js
This commit is contained in:
parent
31403e2533
commit
a5a7018e3b
1 changed files with 1 additions and 9 deletions
|
@ -11,11 +11,6 @@ const options = program
|
||||||
'Set a timeout for each request (in mileseconds)',
|
'Set a timeout for each request (in mileseconds)',
|
||||||
parser.parseNumber
|
parser.parseNumber
|
||||||
)
|
)
|
||||||
.option(
|
|
||||||
'--cache-max-age <cacheMaxAge>',
|
|
||||||
'Maximum time for storing each request (in milliseconds)',
|
|
||||||
parser.parseNumber
|
|
||||||
)
|
|
||||||
.option('--debug', 'Enable debug mode', false)
|
.option('--debug', 'Enable debug mode', false)
|
||||||
.parse(process.argv)
|
.parse(process.argv)
|
||||||
.opts()
|
.opts()
|
||||||
|
@ -43,10 +38,7 @@ async function main() {
|
||||||
debug: options.debug,
|
debug: options.debug,
|
||||||
delay: options.delay,
|
delay: options.delay,
|
||||||
request: {
|
request: {
|
||||||
timeout: options.timeout,
|
timeout: options.timeout
|
||||||
cache: {
|
|
||||||
maxAge: options.cacheMaxAge
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
const grabber = new EPGGrabber(config)
|
const grabber = new EPGGrabber(config)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue