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:
@@ -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 }
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user