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)',
|
||||
parser.parseNumber
|
||||
)
|
||||
.option(
|
||||
'--cache-max-age <cacheMaxAge>',
|
||||
'Maximum time for storing each request (in milliseconds)',
|
||||
parser.parseNumber
|
||||
)
|
||||
.option('--debug', 'Enable debug mode', false)
|
||||
.parse(process.argv)
|
||||
.opts()
|
||||
|
@ -43,10 +38,7 @@ async function main() {
|
|||
debug: options.debug,
|
||||
delay: options.delay,
|
||||
request: {
|
||||
timeout: options.timeout,
|
||||
cache: {
|
||||
maxAge: options.cacheMaxAge
|
||||
}
|
||||
timeout: options.timeout
|
||||
}
|
||||
})
|
||||
const grabber = new EPGGrabber(config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue