mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update editor.ts
This commit is contained in:
parent
732a8542e5
commit
997f8f3f8b
1 changed files with 2 additions and 2 deletions
|
@ -9,12 +9,12 @@ import inquirer, { QuestionCollection } from 'inquirer'
|
||||||
|
|
||||||
program
|
program
|
||||||
.argument('<filepath>', 'Path to *.channels.xml file to edit')
|
.argument('<filepath>', 'Path to *.channels.xml file to edit')
|
||||||
.option('-c, --country <name>', 'Source country', 'us')
|
.option('-c, --country <name>', 'Default country (ISO 3166 code)', 'US')
|
||||||
.parse(process.argv)
|
.parse(process.argv)
|
||||||
|
|
||||||
const filepath = program.args[0]
|
const filepath = program.args[0]
|
||||||
const programOptions = program.opts()
|
const programOptions = program.opts()
|
||||||
const defaultCountry = programOptions.country
|
const defaultCountry = programOptions.country.toLowerCase()
|
||||||
const newLabel = ` [new]`
|
const newLabel = ` [new]`
|
||||||
|
|
||||||
let site: string
|
let site: string
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue