mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-13 02:20:03 -04:00
Merge branch 'master' into add-resolution-to-channel-name
This commit is contained in:
commit
fe67c9fc0b
64 changed files with 1673 additions and 934 deletions
|
@ -1,16 +1,19 @@
|
|||
const { program } = require('commander')
|
||||
const helper = require('./helper')
|
||||
const axios = require('axios')
|
||||
const ProgressBar = require('progress')
|
||||
const instance = axios.create({ timeout: 1000, maxContentLength: 1000 })
|
||||
|
||||
const config = {
|
||||
debug: process.env.npm_config_debug || false,
|
||||
country: process.env.npm_config_country,
|
||||
exclude: process.env.npm_config_exclude,
|
||||
epg: process.env.npm_config_epg || false,
|
||||
resolution: process.env.npm_config_resolution || false,
|
||||
delay: process.env.npm_config_delay || 0
|
||||
}
|
||||
program
|
||||
.version('1.0.0', '-v, --version')
|
||||
.usage('[OPTIONS]...')
|
||||
.option('-d, --debug', 'Debug mode')
|
||||
.option('-c, --country <country>', 'Comma-separated list of country codes')
|
||||
.option('-e, --exclude <exclude>', 'Comma-separated list of country codes to be excluded ')
|
||||
.option('--epg', 'Turn on EPG parser')
|
||||
.parse(process.argv)
|
||||
|
||||
const config = program.opts()
|
||||
|
||||
let globalBuffer = []
|
||||
let bar
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue