Im just going through fine tuning config and the ratio and snatch(hit&run) are been worked
How should ratio and snatch work ? please share your thoughts or use cases.
you should be able to turn ratio off like
a) record snatch anyway as peer history
b) dont display ratio if set off
c) dont send warnings and bans for ratio
if external site and you turn ratio off - simple its off
Now the ratio ON
a) record snatch anyway as peer history
b) display ratio if set on
c) restrict/warn/disable/message/download ban etc
Then if ratio on with restriction
a) seeding recovers warning/ban
b) swap mb for snatched item mb
c) swap bonus for x mb of sntached item
Also
Apart from HNR and ratio warnings a staff can give personal warning for 30 days
all warnings count as warnings
warnings are only used in tt for ratio and personal
can anyone think off any uses for warnings or how the process should work
i wrote code, i just want to check ideas and thoughts before updating here to test further
what i have in config
// =============================================================================
// Ratio warnings
// =============================================================================
// Auto-warn users whose share ratio is too low after enough download volume.
// Warning type stored as: 'Poor Ratio'
// Cleared automatically when uploaded/downloaded ratio recovers.
'RATIOWARNENABLE' => true, // Master switch for ratio warnings
'RATIOWARNMINRATIO' => 0.4, // Warn when ratio is below this (e.g. 0.4 = 0.40)
'RATIOWARN_MINGIGS' => 4, // Only warn after this many GiB downloaded
'RATIOWARN_DAYSTOWARN' => 14, // Warning length in days (expiry)
'RATIOWARN_EXCLUDED' => [], // User class IDs that never get ratio warnings
'RATIOWARN_STOP_DL' => true, // Also set downloadbanned while ratio warning is active
// =============================================================================
// Hit & Run (HnR)
// =============================================================================
// After a completed download, the user must seed for HNR_SEEDTIME seconds.
// Seed time is stored in snatched.last_time (seconds, only counted while seeding).
//
// Mark as HnR when:
// - download completed
// - seed time still below HNR_SEEDTIME
// - user is not currently seeding that torrent
// - last seed activity is older than HNR_GRACE_HOURS
// - (optional) torrent ratio below HNR_MIN_RATIO
//
// Cure when seed time is met, optional ratio is met, trade/bonus, or staff clear.
'HNR_ENABLED' => true, // Master switch for Hit & Run system
'HNR_SEEDTIME' => 172800, // Required seed time in seconds (172800 = 48 hours)
'HNR_MIN_RATIO' => 0.0, // Per-torrent min ratio to avoid/clear HnR; 0 = ignore ratio
'HNR_GRACE_HOURS' => 6, // Hours after last seed activity before a low seed-time snatch is marked HnR
'HNR_WARN_DAYS' => 3, // Days an HnR stays "pending" before hitrunwarn becomes "yes"
'HNR_WARN' => 3, // Active HnR count that issues a warning (type = 'HnR', 30 days)
'HNR_STOP_DL' => 5, // Active HnR count that sets downloadbanned (via warning ladder)
'HNR_BAN' => 10, // Active HnR count that disables the account
// =============================================================================
// Global warning ladder (ALL active warning types)
// =============================================================================
// Counts every active row in warnings (Manual, Poor Ratio, HnR, etc.).
// Works together with HnR count rules and RATIOWARN_STOP_DL above.
'WARN_DLBAN_COUNT' => 2, // ≥ this many active warnings → downloadbanned = yes
'WARN_BAN_COUNT' => 3, // ≥ this many active warnings → enabled = no (account disabled)
And how it works currently
Hit & Run
When you finish a download, you need to seed it for a set amount of time (for example 48 hours).
If you stop seeding too early, after a short grace period the torrent is marked as a Hit & Run.
How to clear a Hit & Run
Keep seeding until the required time is reached, or
Pay with bonus points / upload credit on the Trade page, or
Wait for staff to clear it
Your download history is never deleted. Only the Hit & Run status is cleared.
What happens if you collect several Hit & Runs
Enough active Hit & Runs → you get a Hit & Run warning (and a private message)
More Hit & Runs → download ban (you cannot download until the count drops)
Too many Hit & Runs → account disabled
If your Hit & Run count falls again (you seed, trade, or staff clear some), the warning and restrictions can be lifted automatically.
Ratio warning
If your share ratio drops too low after you have downloaded enough data, you get a ratio warning.
Improve your ratio (upload more / download less) and the warning is removed
On some sites, a ratio warning also blocks downloads until your ratio recovers
Warning ladder (all types)
Manual warnings, ratio warnings, and Hit & Run warnings all count together:
Active warnings Effect
1 or more You are marked as warned
2 or more Download ban
3 or more Account disabled
Hit & Run counts and ratio rules can also apply their own limits on top of this.
Staff
Staff can add or remove warnings, lift download bans, and disable or re-enable accounts. Changes are logged and your status is updated automatically.
In short: seed what you download, keep a healthy ratio, and clear Hit & Runs if you get any. The system warns first, then restricts downloads, then disables the account if problems continue.