Skip to content

Commit

Permalink
fix: don't report sync as successful if best score is in negatives
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajit authored Feb 17, 2024
1 parent 6cdc12b commit 280d553
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 280d553

Please sign in to comment.