1
0
mirror of https://github.com/snobu/destreamer.git synced 2026-01-23 00:12:16 +00:00

fix typo & sanitize video names on win32 (#205)

* fix typo & sanitize video names on win32
* add warning for invalid path
This commit is contained in:
beppe9000
2020-08-15 15:38:01 +02:00
committed by GitHub
parent 5b62c50b22
commit a9f8b02f08
2 changed files with 10 additions and 6 deletions

View File

@@ -72,7 +72,7 @@ export const argv: any = yargs.options({
},
closedCaptions: {
alias: 'cc',
describe: 'Check if closed captions are aviable and let the user choose which one to download (will not ask if only one aviable)',
describe: 'Check if closed captions are available and let the user choose which one to download (will not ask if only one available)',
type: 'boolean',
default: false,
demandOption: false
@@ -183,8 +183,8 @@ function isOutputTemplateValid(argv: any): boolean {
while (match) {
if (!templateElements.includes(match[1])) {
logger.error(
`'${match[0]}' is not aviable as a template element \n` +
`Aviable templates elements: '${templateElements.join("', '")}' \n`,
`'${match[0]}' is not available as a template element \n` +
`Available templates elements: '${templateElements.join("', '")}' \n`,
{ fatal: true }
);