From 3a3335866e2dc19b76317c5a990b109aaf6d97b3 Mon Sep 17 00:00:00 2001 From: blohnungde <35181949+belohnung@users.noreply.github.com> Date: Fri, 23 Apr 2021 15:49:55 +0200 Subject: [PATCH] fix small typo --- lib/video.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/video.js b/lib/video.js index 903efdb..343fe07 100644 --- a/lib/video.js +++ b/lib/video.js @@ -382,7 +382,7 @@ module.exports = function (filePath, settings, infoConfiguration, infoFile) { /** * Save all set commands */ - this.save = function (destionationFileName, callback) { + this.save = function (destinationFileName, callback) { // Check if the 'video' is present in the options if (options.hasOwnProperty('video')) { // Check if video is disabled @@ -441,7 +441,7 @@ module.exports = function (filePath, settings, infoConfiguration, infoFile) { } } - setOutput(destionationFileName); + setOutput(destinationFileName); return execCommand.call(this, callback); } @@ -607,14 +607,14 @@ module.exports = function (filePath, settings, infoConfiguration, infoFile) { /** * Extracting sound from a video, and save it as Mp3 */ - this.fnExtractSoundToMP3 = function (destionationFileName, callback) { + this.fnExtractSoundToMP3 = function (destinationFileName, callback) { // Check if file already exists. In this case will remove it - if (fs.existsSync(destionationFileName)) - fs.unlinkSync(destionationFileName); + if (fs.existsSync(destinationFileName)) + fs.unlinkSync(destinationFileName); // Building the final path - var destinationDirName = path.dirname(destionationFileName) - , destinationFileNameWE = path.basename(destionationFileName, path.extname(destionationFileName)) + '.mp3' + var destinationDirName = path.dirname(destinationFileName) + , destinationFileNameWE = path.basename(destinationFileName, path.extname(destinationFileName)) + '.mp3' , finalPath = path.join(destinationDirName, destinationFileNameWE); resetCommands(this);