Skip to content

Commit

Permalink
feat: replace sanitized filename characters with -
Browse files Browse the repository at this point in the history
  • Loading branch information
fent committed Jul 9, 2019
1 parent b2bb3be commit e6e08f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/ytdl.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ if (opts.infoJson) {
let parsedOutput = path.parse(output);
output = path.format({
dir: parsedOutput.dir,
base: sanitizeName(parsedOutput.base)
base: sanitizeName(parsedOutput.base, { replacement: '-' })
});

readStream.pipe(fs.createWriteStream(output))
Expand Down

0 comments on commit e6e08f0

Please sign in to comment.