Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: don't report sync as successful if best score is in negatives #186

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

ajitid
Copy link
Contributor

@ajitid ajitid commented Feb 17, 2024

This is easy to reproduce. Try using an input subtitle file that is not related to the video. Score is reported as negative while sync_was_successful is still reported as true.

skip_sync is untouched. So if skip_sync is true (which means best score would be 0), sync_was_successful will still report as true.

PS: sorry for this being such a crude PR. I don't usually work in python and I couldn't come up with a test to add. I would happily take up the feedback to improve the PR if you give any.

@morpheus65535 please weigh in if you feel otherwise.

@smacke
Copy link
Owner

smacke commented Mar 18, 2024

LGTM, thanks for the PR

@smacke smacke merged commit 1f098e7 into smacke:master Mar 18, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants