diff --git a/package-lock.json b/package-lock.json index 86a3d55..1f6a1bf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "video-sync", - "version": "0.8.0", + "version": "0.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 7050f76..d1d77aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "video-sync", - "version": "0.8.0", + "version": "0.0.0", "author": "Chaphasilor", "bin": { "video-sync": "./bin/run" diff --git a/src/index.js b/src/index.js index 4aee95e..3d9f5a6 100644 --- a/src/index.js +++ b/src/index.js @@ -250,21 +250,23 @@ class VideoSyncCommand extends Command { // check if one of the videos is warped let videoWarped = false if (!flags.noOffsetValidation) { + const offsetValidationSpinner = ora(`Checking if found offset applies to the whole video...`).start(); try { videoWarped = ! await validateOffset(args.destination, args.source, videoOffset) } catch (err) { console.error(`Error while checking if found offset applies to the whole video:`, err) } - } - // log warning about warped video - if (videoWarped && flags.confirm) { - offsetValidationSpinner.warn(`Syncing the tracks might not work well because one of the videos appears to be warped.`) - } else if (!videoWarped) { - offsetValidationSpinner.succeed(`Offset is valid.`) - } else { - offsetValidationSpinner.stop() + // log warning about warped video + if (videoWarped && flags.confirm) { + offsetValidationSpinner.warn(`Syncing the tracks might not work well because one of the videos appears to be warped.`) + } else if (!videoWarped) { + offsetValidationSpinner.succeed(`Offset is valid.`) + } else { + offsetValidationSpinner.stop() + } + } let continueWithMerging = answers.output !== undefined && (selectedTracks.audio.length > 0 || selectedTracks.subs.length > 0)