Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions lib/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -441,7 +441,7 @@ module.exports = function (filePath, settings, infoConfiguration, infoFile) {
}
}

setOutput(destionationFileName);
setOutput(destinationFileName);

return execCommand.call(this, callback);
}
Expand Down Expand Up @@ -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);
Expand Down