Skip to content

Commit

Permalink
Merge pull request #186 from ajitid/master
Browse files Browse the repository at this point in the history
fix: don't report sync as successful if best score is in negatives
  • Loading branch information
smacke authored Mar 18, 2024
2 parents 6cdc12b + 280d553 commit 1f098e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ffsubsync/ffsubsync.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ def try_sync(
reference_pipe.transform(args.reference),
srt_pipes,
)
if best_score < 0:
sync_was_successful = False
logger.info("...done")
offset_seconds = (
offset_samples / float(SAMPLE_RATE) + args.apply_offset_seconds
Expand Down

0 comments on commit 1f098e7

Please sign in to comment.