Merge branch 'master' into add-resolution-to-channel-name

This commit is contained in:
freearhey 2021-01-18 21:06:09 +03:00
commit fe67c9fc0b
64 changed files with 1673 additions and 934 deletions

View file

@ -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