Repository navigation
Conversation
Append the stop-condition enum to keep existing persisted values stable. Reuse the current ratio calculation (available after 100 KiB downloaded) and add engine and serialization regression tests.
Keep the new stop-condition names, summaries, and stop reasons aligned with the existing translation key checks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #65.
Adds When upload/download ratio ≥ to the Stop dropdown. It uses the same ratio as the torrent list: reported uploaded bytes divided by reported downloaded bytes. The torrent stops and sends a stopped announce when the target is reached.
The ratio isn't available until 100 KiB has been downloaded, so the condition won't fire for a seed-only torrent or while the ratio is undefined. Non-positive thresholds are ignored.
The new enum value is appended to preserve existing saved stop-condition values. The UI labels and stop reason are included across all 38 supported languages, keeping the translation key tests in sync.
Added four engine tests and a settings serialization test for the new condition.
I couldn't run .NET 10 tests locally (SDK unavailable). CI and review are still needed; translations would also benefit from native-speaker review.