Skip to content

Commit 1f098e7

Browse files
authored
Merge pull request #186 from ajitid/master
fix: don't report sync as successful if best score is in negatives
2 parents 6cdc12b + 280d553 commit 1f098e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ffsubsync/ffsubsync.py

+2
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ def try_sync(
178178
reference_pipe.transform(args.reference),
179179
srt_pipes,
180180
)
181+
if best_score < 0:
182+
sync_was_successful = False
181183
logger.info("...done")
182184
offset_seconds = (
183185
offset_samples / float(SAMPLE_RATE) + args.apply_offset_seconds

0 commit comments

Comments
 (0)