diff --git a/src/RatioMaster.App/Converters/DisplayNames.cs b/src/RatioMaster.App/Converters/DisplayNames.cs
index dc6832d..8c1b907 100644
--- a/src/RatioMaster.App/Converters/DisplayNames.cs
+++ b/src/RatioMaster.App/Converters/DisplayNames.cs
@@ -38,6 +38,7 @@ public static class DisplayNames
StopConditionType.UploadedAboveMb => Strings.StopTypeUploadedAboveMb,
StopConditionType.DownloadedAboveMb => Strings.StopTypeDownloadedAboveMb,
StopConditionType.LeecherSeederRatioBelow => Strings.StopTypeLeecherSeederRatioBelow,
+ StopConditionType.UploadDownloadRatioAtLeast => Strings.StopTypeUploadDownloadRatioAtLeast,
_ => Strings.StopTypeNever,
};
diff --git a/src/RatioMaster.App/Resources/Strings.ar.resx b/src/RatioMaster.App/Resources/Strings.ar.resx
index b41fce4..49c67e9 100644
--- a/src/RatioMaster.App/Resources/Strings.ar.resx
+++ b/src/RatioMaster.App/Resources/Strings.ar.resx
@@ -298,6 +298,9 @@
المُنزِّلون/البذور < {0}
+
+ نسبة الرفع/التنزيل ≥ {0}
+
أبدًا
@@ -319,6 +322,9 @@
عندما تكون نسبة المُنزِّلين/البذور <
+
+ عندما تكون نسبة الرفع/التنزيل ≥
+
ث
diff --git a/src/RatioMaster.App/Resources/Strings.bg.resx b/src/RatioMaster.App/Resources/Strings.bg.resx
index f4e5231..dad3aba 100644
--- a/src/RatioMaster.App/Resources/Strings.bg.resx
+++ b/src/RatioMaster.App/Resources/Strings.bg.resx
@@ -294,6 +294,9 @@
Лийчъри/сийдъри < {0}
+
+ Съотношение качване/изтегляне ≥ {0}
+
Никога
@@ -315,6 +318,9 @@
При лийчъри/сийдъри <
+
+ Когато съотношението качване/изтегляне ≥
+
с
diff --git a/src/RatioMaster.App/Resources/Strings.cs.resx b/src/RatioMaster.App/Resources/Strings.cs.resx
index 7f9a2e8..757026a 100644
--- a/src/RatioMaster.App/Resources/Strings.cs.resx
+++ b/src/RatioMaster.App/Resources/Strings.cs.resx
@@ -294,6 +294,9 @@
Leecheři/seedy < {0}
+
+ Poměr odesláno/staženo ≥ {0}
+
Nikdy
@@ -315,6 +318,9 @@
Když leecheři/seedy <
+
+ Když poměr odesláno/staženo ≥
+
s
diff --git a/src/RatioMaster.App/Resources/Strings.da.resx b/src/RatioMaster.App/Resources/Strings.da.resx
index 079e67f..7adcafc 100644
--- a/src/RatioMaster.App/Resources/Strings.da.resx
+++ b/src/RatioMaster.App/Resources/Strings.da.resx
@@ -294,6 +294,9 @@
Leechere/seedere < {0}
+
+ Upload/download-forhold ≥ {0}
+
Aldrig
@@ -315,6 +318,9 @@
Når leechere/seedere <
+
+ Når upload/download-forholdet ≥
+
sekunder
diff --git a/src/RatioMaster.App/Resources/Strings.de.resx b/src/RatioMaster.App/Resources/Strings.de.resx
index c52e774..a17a871 100644
--- a/src/RatioMaster.App/Resources/Strings.de.resx
+++ b/src/RatioMaster.App/Resources/Strings.de.resx
@@ -294,6 +294,9 @@
Leecher/Seeder < {0}
+
+ Upload-/Download-Verhältnis ≥ {0}
+
Nie
@@ -315,6 +318,9 @@
Wenn Leecher/Seeder <
+
+ Wenn das Upload-/Download-Verhältnis ≥
+
Sekunden
diff --git a/src/RatioMaster.App/Resources/Strings.el.resx b/src/RatioMaster.App/Resources/Strings.el.resx
index 86a43d6..e46b02e 100644
--- a/src/RatioMaster.App/Resources/Strings.el.resx
+++ b/src/RatioMaster.App/Resources/Strings.el.resx
@@ -294,6 +294,9 @@
Λήπτες/διαμοιραστές < {0}
+
+ Αναλογία αποστολής/λήψης ≥ {0}
+
Ποτέ
@@ -315,6 +318,9 @@
Όταν λήπτες/διαμοιραστές <
+
+ Όταν η αναλογία αποστολής/λήψης ≥
+
δευτερόλεπτα
diff --git a/src/RatioMaster.App/Resources/Strings.es.resx b/src/RatioMaster.App/Resources/Strings.es.resx
index 09a5546..291af69 100644
--- a/src/RatioMaster.App/Resources/Strings.es.resx
+++ b/src/RatioMaster.App/Resources/Strings.es.resx
@@ -294,6 +294,9 @@
Leechers/semillas < {0}
+
+ Relación subida/descarga ≥ {0}
+
Nunca
@@ -315,6 +318,9 @@
Cuando leechers/semillas <
+
+ Cuando la relación subida/descarga ≥
+
segundos
diff --git a/src/RatioMaster.App/Resources/Strings.et.resx b/src/RatioMaster.App/Resources/Strings.et.resx
index 5d1674e..1511e7d 100644
--- a/src/RatioMaster.App/Resources/Strings.et.resx
+++ b/src/RatioMaster.App/Resources/Strings.et.resx
@@ -294,6 +294,9 @@
Allalaadijad/jagajad < {0}
+
+ Üles-/allalaadimise suhe ≥ {0}
+
Mitte kunagi
@@ -315,6 +318,9 @@
Kui allalaadijad/jagajad <
+
+ Kui üles-/allalaadimise suhe ≥
+
s
diff --git a/src/RatioMaster.App/Resources/Strings.fi.resx b/src/RatioMaster.App/Resources/Strings.fi.resx
index edb8e20..e1c7e2f 100644
--- a/src/RatioMaster.App/Resources/Strings.fi.resx
+++ b/src/RatioMaster.App/Resources/Strings.fi.resx
@@ -294,6 +294,9 @@
Lataajat/jakajat < {0}
+
+ Lähetys-/lataussuhde ≥ {0}
+
Ei koskaan
@@ -315,6 +318,9 @@
Kun lataajat/jakajat <
+
+ Kun lähetys-/lataussuhde ≥
+
s
diff --git a/src/RatioMaster.App/Resources/Strings.fr.resx b/src/RatioMaster.App/Resources/Strings.fr.resx
index 26c68d5..316e33f 100644
--- a/src/RatioMaster.App/Resources/Strings.fr.resx
+++ b/src/RatioMaster.App/Resources/Strings.fr.resx
@@ -294,6 +294,9 @@
Leechers/seeders < {0}
+
+ Ratio envoi/réception ≥ {0}
+
Jamais
@@ -315,6 +318,9 @@
Si le ratio leechers/seeders est <
+
+ Lorsque le ratio envoi/réception ≥
+
secondes
diff --git a/src/RatioMaster.App/Resources/Strings.he.resx b/src/RatioMaster.App/Resources/Strings.he.resx
index ab22890..2d24e06 100644
--- a/src/RatioMaster.App/Resources/Strings.he.resx
+++ b/src/RatioMaster.App/Resources/Strings.he.resx
@@ -298,6 +298,9 @@
עלוקות/זורעים < {0}
+
+ יחס העלאה/הורדה ≥ {0}
+
אף פעם
@@ -319,6 +322,9 @@
כשיחס עלוקות/זורעים <
+
+ כאשר יחס ההעלאה/הורדה ≥
+
שנ'
diff --git a/src/RatioMaster.App/Resources/Strings.hi.resx b/src/RatioMaster.App/Resources/Strings.hi.resx
index 062df58..952347d 100644
--- a/src/RatioMaster.App/Resources/Strings.hi.resx
+++ b/src/RatioMaster.App/Resources/Strings.hi.resx
@@ -294,6 +294,9 @@
लीचर/सीडर < {0}
+
+ अपलोड/डाउनलोड अनुपात ≥ {0}
+
कभी नहीं
@@ -315,6 +318,9 @@
जब लीचर/सीडर <
+
+ जब अपलोड/डाउनलोड अनुपात ≥
+
सेकंड
diff --git a/src/RatioMaster.App/Resources/Strings.hr.resx b/src/RatioMaster.App/Resources/Strings.hr.resx
index 17d784d..021b8b0 100644
--- a/src/RatioMaster.App/Resources/Strings.hr.resx
+++ b/src/RatioMaster.App/Resources/Strings.hr.resx
@@ -294,6 +294,9 @@
Leecheri/seederi < {0}
+
+ Omjer slanja/preuzimanja ≥ {0}
+
Nikad
@@ -315,6 +318,9 @@
Kad je omjer leechera i seedera <
+
+ Kad je omjer slanja/preuzimanja ≥
+
s
diff --git a/src/RatioMaster.App/Resources/Strings.hu.resx b/src/RatioMaster.App/Resources/Strings.hu.resx
index 0ccac91..870dba0 100644
--- a/src/RatioMaster.App/Resources/Strings.hu.resx
+++ b/src/RatioMaster.App/Resources/Strings.hu.resx
@@ -294,6 +294,9 @@
Leecherek/seedek < {0}
+
+ Feltöltés/letöltés arány ≥ {0}
+
Soha
@@ -315,6 +318,9 @@
Ha a leecherek/seedek <
+
+ Ha a feltöltés/letöltés arány ≥
+
másodperc
diff --git a/src/RatioMaster.App/Resources/Strings.id.resx b/src/RatioMaster.App/Resources/Strings.id.resx
index e96bd13..78b5b0f 100644
--- a/src/RatioMaster.App/Resources/Strings.id.resx
+++ b/src/RatioMaster.App/Resources/Strings.id.resx
@@ -294,6 +294,9 @@
Leecher/seeder < {0}
+
+ Rasio unggah/unduh ≥ {0}
+
Tidak pernah
@@ -315,6 +318,9 @@
Jika leecher/seeder <
+
+ Ketika rasio unggah/unduh ≥
+
detik
diff --git a/src/RatioMaster.App/Resources/Strings.it.resx b/src/RatioMaster.App/Resources/Strings.it.resx
index 8fab8a7..f771d05 100644
--- a/src/RatioMaster.App/Resources/Strings.it.resx
+++ b/src/RatioMaster.App/Resources/Strings.it.resx
@@ -294,6 +294,9 @@
Leecher/seeder < {0}
+
+ Rapporto upload/download ≥ {0}
+
Mai
@@ -315,6 +318,9 @@
Se leecher/seeder <
+
+ Quando il rapporto upload/download ≥
+
secondi
diff --git a/src/RatioMaster.App/Resources/Strings.ja.resx b/src/RatioMaster.App/Resources/Strings.ja.resx
index c5a88d9..4712f52 100644
--- a/src/RatioMaster.App/Resources/Strings.ja.resx
+++ b/src/RatioMaster.App/Resources/Strings.ja.resx
@@ -294,6 +294,9 @@
リーチャー/シーダー < {0}
+
+ アップロード/ダウンロード比 ≥ {0}
+
なし
@@ -315,6 +318,9 @@
リーチャー/シーダー <
+
+ アップロード/ダウンロード比が ≥
+
秒
diff --git a/src/RatioMaster.App/Resources/Strings.lt.resx b/src/RatioMaster.App/Resources/Strings.lt.resx
index 756bb08..45a5b40 100644
--- a/src/RatioMaster.App/Resources/Strings.lt.resx
+++ b/src/RatioMaster.App/Resources/Strings.lt.resx
@@ -294,6 +294,9 @@
Siuntėjai/skleidėjai < {0}
+
+ Įkėlimo / atsisiuntimo santykis ≥ {0}
+
Niekada
@@ -315,6 +318,9 @@
Kai siuntėjai/skleidėjai <
+
+ Kai įkėlimo / atsisiuntimo santykis ≥
+
s
diff --git a/src/RatioMaster.App/Resources/Strings.nb.resx b/src/RatioMaster.App/Resources/Strings.nb.resx
index 786a875..6b038bb 100644
--- a/src/RatioMaster.App/Resources/Strings.nb.resx
+++ b/src/RatioMaster.App/Resources/Strings.nb.resx
@@ -294,6 +294,9 @@
Snyltere/delere < {0}
+
+ Opplastings-/nedlastingsforhold ≥ {0}
+
Aldri
@@ -315,6 +318,9 @@
Når snyltere/delere <
+
+ Når opplastings-/nedlastingsforholdet ≥
+
sekunder
diff --git a/src/RatioMaster.App/Resources/Strings.nl.resx b/src/RatioMaster.App/Resources/Strings.nl.resx
index fb09506..afb7a69 100644
--- a/src/RatioMaster.App/Resources/Strings.nl.resx
+++ b/src/RatioMaster.App/Resources/Strings.nl.resx
@@ -294,6 +294,9 @@
Leechers/seeders < {0}
+
+ Upload-/downloadverhouding ≥ {0}
+
Nooit
@@ -315,6 +318,9 @@
Als leechers/seeders <
+
+ Wanneer de upload-/downloadverhouding ≥
+
seconden
diff --git a/src/RatioMaster.App/Resources/Strings.pl.resx b/src/RatioMaster.App/Resources/Strings.pl.resx
index ffbea33..e169e72 100644
--- a/src/RatioMaster.App/Resources/Strings.pl.resx
+++ b/src/RatioMaster.App/Resources/Strings.pl.resx
@@ -294,6 +294,9 @@
Pijawki/seedy < {0}
+
+ Stosunek wysyłania do pobierania ≥ {0}
+
Nigdy
@@ -315,6 +318,9 @@
Gdy pijawki/seedy <
+
+ Gdy stosunek wysyłania do pobierania ≥
+
s
diff --git a/src/RatioMaster.App/Resources/Strings.pt-BR.resx b/src/RatioMaster.App/Resources/Strings.pt-BR.resx
index 919b6c4..a513744 100644
--- a/src/RatioMaster.App/Resources/Strings.pt-BR.resx
+++ b/src/RatioMaster.App/Resources/Strings.pt-BR.resx
@@ -294,6 +294,9 @@
Leechers/seeds < {0}
+
+ Proporção upload/download ≥ {0}
+
Nunca
@@ -315,6 +318,9 @@
Quando leechers/seeds <
+
+ Quando a proporção upload/download ≥
+
segundos
diff --git a/src/RatioMaster.App/Resources/Strings.pt.resx b/src/RatioMaster.App/Resources/Strings.pt.resx
index e11b7a7..7f6e529 100644
--- a/src/RatioMaster.App/Resources/Strings.pt.resx
+++ b/src/RatioMaster.App/Resources/Strings.pt.resx
@@ -294,6 +294,9 @@
Leechers/sementes < {0}
+
+ Rácio envio/transferência ≥ {0}
+
Nunca
@@ -315,6 +318,9 @@
Quando leechers/sementes <
+
+ Quando o rácio envio/transferência ≥
+
segundos
diff --git a/src/RatioMaster.App/Resources/Strings.resx b/src/RatioMaster.App/Resources/Strings.resx
index 250de9f..556f69e 100644
--- a/src/RatioMaster.App/Resources/Strings.resx
+++ b/src/RatioMaster.App/Resources/Strings.resx
@@ -379,6 +379,10 @@
Leechers/seeders < {0}
General tab: stops when leechers divided by seeders drops below {0}.
+
+ Upload/download ratio ≥ {0}
+ Stop summary: upload divided by download at or above {0}.
+
Never
"Stop" drop-down in the torrent settings: never stop on its own.
@@ -407,6 +411,10 @@
When leechers/seeders <
"Stop" drop-down: followed by a number box and the word "ratio".
+
+ When upload/download ratio ≥
+ Followed by the target ratio.
+
seconds
Unit after the stop value box: the number of seconds the user typed, normally 60 or more. Use the form a unit label next to a number field normally takes.
diff --git a/src/RatioMaster.App/Resources/Strings.ro.resx b/src/RatioMaster.App/Resources/Strings.ro.resx
index 8b050fd..122e669 100644
--- a/src/RatioMaster.App/Resources/Strings.ro.resx
+++ b/src/RatioMaster.App/Resources/Strings.ro.resx
@@ -294,6 +294,9 @@
Leecheri/seederi < {0}
+
+ Raport încărcare/descărcare ≥ {0}
+
Niciodată
@@ -315,6 +318,9 @@
Când leecheri/seederi <
+
+ Când raportul încărcare/descărcare ≥
+
s
diff --git a/src/RatioMaster.App/Resources/Strings.ru.resx b/src/RatioMaster.App/Resources/Strings.ru.resx
index 089b63e..331900d 100644
--- a/src/RatioMaster.App/Resources/Strings.ru.resx
+++ b/src/RatioMaster.App/Resources/Strings.ru.resx
@@ -294,6 +294,9 @@
Личи/сиды < {0}
+
+ Соотношение отдачи/загрузки ≥ {0}
+
Никогда
@@ -315,6 +318,9 @@
Когда личи/сиды <
+
+ Когда соотношение отдачи/загрузки ≥
+
с
diff --git a/src/RatioMaster.App/Resources/Strings.sk.resx b/src/RatioMaster.App/Resources/Strings.sk.resx
index 25e243d..c140e7a 100644
--- a/src/RatioMaster.App/Resources/Strings.sk.resx
+++ b/src/RatioMaster.App/Resources/Strings.sk.resx
@@ -294,6 +294,9 @@
Leecheri/seedy < {0}
+
+ Pomer odoslané/stiahnuté ≥ {0}
+
Nikdy
@@ -315,6 +318,9 @@
Keď leecheri/seedy <
+
+ Keď pomer odoslané/stiahnuté ≥
+
s
diff --git a/src/RatioMaster.App/Resources/Strings.sl.resx b/src/RatioMaster.App/Resources/Strings.sl.resx
index 866befb..2f06e08 100644
--- a/src/RatioMaster.App/Resources/Strings.sl.resx
+++ b/src/RatioMaster.App/Resources/Strings.sl.resx
@@ -294,6 +294,9 @@
Pijavke/sejalci < {0}
+
+ Razmerje oddano/preneseno ≥ {0}
+
Nikoli
@@ -315,6 +318,9 @@
Ko je razmerje pijavk in sejalcev <
+
+ Ko razmerje oddano/preneseno ≥
+
s
diff --git a/src/RatioMaster.App/Resources/Strings.sq.resx b/src/RatioMaster.App/Resources/Strings.sq.resx
index b14cee7..716ba56 100644
--- a/src/RatioMaster.App/Resources/Strings.sq.resx
+++ b/src/RatioMaster.App/Resources/Strings.sq.resx
@@ -294,6 +294,9 @@
Shkarkues/mbjellës < {0}
+
+ Raporti ngarkim/shkarkim ≥ {0}
+
Kurrë
@@ -315,6 +318,9 @@
Kur shkarkues/mbjellës <
+
+ Kur raporti ngarkim/shkarkim ≥
+
s
diff --git a/src/RatioMaster.App/Resources/Strings.sr-Cyrl.resx b/src/RatioMaster.App/Resources/Strings.sr-Cyrl.resx
index 49e3af0..7c39fd8 100644
--- a/src/RatioMaster.App/Resources/Strings.sr-Cyrl.resx
+++ b/src/RatioMaster.App/Resources/Strings.sr-Cyrl.resx
@@ -294,6 +294,9 @@
Пијавице/сејачи < {0}
+
+ Однос отпремања/преузимања ≥ {0}
+
Никад
@@ -315,6 +318,9 @@
Кад је однос пијавица/сејача <
+
+ Када је однос отпремања/преузимања ≥
+
с
diff --git a/src/RatioMaster.App/Resources/Strings.sr-Latn.resx b/src/RatioMaster.App/Resources/Strings.sr-Latn.resx
index 6152eb2..1aee4cb 100644
--- a/src/RatioMaster.App/Resources/Strings.sr-Latn.resx
+++ b/src/RatioMaster.App/Resources/Strings.sr-Latn.resx
@@ -294,6 +294,9 @@
Pijavice/sejači < {0}
+
+ Odnos otpremanja/preuzimanja ≥ {0}
+
Nikad
@@ -315,6 +318,9 @@
Kad je odnos pijavica/sejača <
+
+ Kada je odnos otpremanja/preuzimanja ≥
+
s
diff --git a/src/RatioMaster.App/Resources/Strings.sv.resx b/src/RatioMaster.App/Resources/Strings.sv.resx
index 1a4ca40..fc6a29f 100644
--- a/src/RatioMaster.App/Resources/Strings.sv.resx
+++ b/src/RatioMaster.App/Resources/Strings.sv.resx
@@ -294,6 +294,9 @@
Leechare/seedare < {0}
+
+ Uppladdnings-/nedladdningskvot ≥ {0}
+
Aldrig
@@ -315,6 +318,9 @@
När leechare/seedare <
+
+ När uppladdnings-/nedladdningskvoten ≥
+
sekunder
diff --git a/src/RatioMaster.App/Resources/Strings.th.resx b/src/RatioMaster.App/Resources/Strings.th.resx
index 6e09bef..490615a 100644
--- a/src/RatioMaster.App/Resources/Strings.th.resx
+++ b/src/RatioMaster.App/Resources/Strings.th.resx
@@ -294,6 +294,9 @@
ลีชเชอร์/ซีดเดอร์ < {0}
+
+ อัตราส่วนอัปโหลด/ดาวน์โหลด ≥ {0}
+
ไม่หยุดเอง
@@ -315,6 +318,9 @@
เมื่อลีชเชอร์/ซีดเดอร์ <
+
+ เมื่ออัตราส่วนอัปโหลด/ดาวน์โหลด ≥
+
วินาที
diff --git a/src/RatioMaster.App/Resources/Strings.tr.resx b/src/RatioMaster.App/Resources/Strings.tr.resx
index 14a5dbe..852840d 100644
--- a/src/RatioMaster.App/Resources/Strings.tr.resx
+++ b/src/RatioMaster.App/Resources/Strings.tr.resx
@@ -294,6 +294,9 @@
Çeken/gönderen < {0}
+
+ Yükleme/indirme oranı ≥ {0}
+
Hiçbir zaman
@@ -315,6 +318,9 @@
Çeken/gönderen oranı <
+
+ Yükleme/indirme oranı ≥
+
saniye
diff --git a/src/RatioMaster.App/Resources/Strings.uk.resx b/src/RatioMaster.App/Resources/Strings.uk.resx
index 7e678db..7bf911a 100644
--- a/src/RatioMaster.App/Resources/Strings.uk.resx
+++ b/src/RatioMaster.App/Resources/Strings.uk.resx
@@ -294,6 +294,9 @@
Лічери/сідери < {0}
+
+ Співвідношення віддачі/завантаження ≥ {0}
+
Ніколи
@@ -315,6 +318,9 @@
Коли лічери/сідери <
+
+ Коли співвідношення віддачі/завантаження ≥
+
с
diff --git a/src/RatioMaster.App/Resources/Strings.vi.resx b/src/RatioMaster.App/Resources/Strings.vi.resx
index b208631..ae40e98 100644
--- a/src/RatioMaster.App/Resources/Strings.vi.resx
+++ b/src/RatioMaster.App/Resources/Strings.vi.resx
@@ -294,6 +294,9 @@
Leecher/seeder < {0}
+
+ Tỷ lệ tải lên/tải xuống ≥ {0}
+
Không bao giờ
@@ -315,6 +318,9 @@
Khi leecher/seeder <
+
+ Khi tỷ lệ tải lên/tải xuống ≥
+
giây
diff --git a/src/RatioMaster.App/Resources/Strings.zh-Hans.resx b/src/RatioMaster.App/Resources/Strings.zh-Hans.resx
index 562c518..806ac24 100644
--- a/src/RatioMaster.App/Resources/Strings.zh-Hans.resx
+++ b/src/RatioMaster.App/Resources/Strings.zh-Hans.resx
@@ -294,6 +294,9 @@
下载者/做种者 < {0}
+
+ 上传/下载比率 ≥ {0}
+
无
@@ -315,6 +318,9 @@
下载者/做种者 <
+
+ 当上传/下载比率 ≥
+
秒
diff --git a/src/RatioMaster.App/Resources/Strings.zh-Hant.resx b/src/RatioMaster.App/Resources/Strings.zh-Hant.resx
index a4cb3b1..b077493 100644
--- a/src/RatioMaster.App/Resources/Strings.zh-Hant.resx
+++ b/src/RatioMaster.App/Resources/Strings.zh-Hant.resx
@@ -294,6 +294,9 @@
下載者/做種者 < {0}
+
+ 上傳/下載比率 ≥ {0}
+
無
@@ -315,6 +318,9 @@
下載者/做種者 <
+
+ 當上傳/下載比率 ≥
+
秒
diff --git a/src/RatioMaster.App/ViewModels/TorrentItemViewModel.cs b/src/RatioMaster.App/ViewModels/TorrentItemViewModel.cs
index c855984..7443e4d 100644
--- a/src/RatioMaster.App/ViewModels/TorrentItemViewModel.cs
+++ b/src/RatioMaster.App/ViewModels/TorrentItemViewModel.cs
@@ -186,6 +186,7 @@ public string StopConditionText
StopConditionType.LeechersBelow => string.Format(CultureInfo.CurrentCulture, Strings.StopSummaryLeechersBelow, whole),
StopConditionType.UploadedAboveMb => string.Format(CultureInfo.CurrentCulture, Strings.StopSummaryUploadedAbove, whole),
StopConditionType.DownloadedAboveMb => string.Format(CultureInfo.CurrentCulture, Strings.StopSummaryDownloadedAbove, whole),
+ StopConditionType.UploadDownloadRatioAtLeast => string.Format(CultureInfo.CurrentCulture, Strings.StopSummaryUploadDownloadRatioAtLeast, value.ToString("0.###", CultureInfo.CurrentCulture)),
_ => string.Format(CultureInfo.CurrentCulture, Strings.StopSummaryRatioBelow, value.ToString("0.###", CultureInfo.CurrentCulture)),
};
}
diff --git a/src/RatioMaster.App/ViewModels/TorrentSettingsViewModel.cs b/src/RatioMaster.App/ViewModels/TorrentSettingsViewModel.cs
index a84bbef..d43b09e 100644
--- a/src/RatioMaster.App/ViewModels/TorrentSettingsViewModel.cs
+++ b/src/RatioMaster.App/ViewModels/TorrentSettingsViewModel.cs
@@ -191,7 +191,7 @@ public TorrentSettingsViewModel(ClientProfileCatalog catalog, TorrentSessionFact
{
StopConditionType.AfterSeconds => Strings.UnitSeconds,
StopConditionType.UploadedAboveMb or StopConditionType.DownloadedAboveMb => Strings.UnitMegabytes,
- StopConditionType.LeecherSeederRatioBelow => Strings.UnitRatio,
+ StopConditionType.LeecherSeederRatioBelow or StopConditionType.UploadDownloadRatioAtLeast => Strings.UnitRatio,
_ => string.Empty,
};
@@ -294,7 +294,7 @@ public void LoadFrom(TorrentSettings settings)
StopConditionType.AfterSeconds => 3600,
StopConditionType.SeedersBelow or StopConditionType.LeechersBelow => 10,
StopConditionType.UploadedAboveMb or StopConditionType.DownloadedAboveMb => 1024,
- StopConditionType.LeecherSeederRatioBelow => 1.0,
+ StopConditionType.LeecherSeederRatioBelow or StopConditionType.UploadDownloadRatioAtLeast => 1.0,
_ => 0,
};
diff --git a/src/RatioMaster.Core.Tests/Sessions/TorrentSessionTests.cs b/src/RatioMaster.Core.Tests/Sessions/TorrentSessionTests.cs
index b3b0218..be94e15 100644
--- a/src/RatioMaster.Core.Tests/Sessions/TorrentSessionTests.cs
+++ b/src/RatioMaster.Core.Tests/Sessions/TorrentSessionTests.cs
@@ -460,6 +460,77 @@ public async Task StopsWhenLeecherToSeederRatioIsBelowTheLimit()
Assert.Equal(TorrentSessionState.Stopped, session.State);
}
+ [Fact]
+ public async Task StopsWhenUploadDownloadRatioReachesTheTarget()
+ {
+ var settings = QuietSettings() with
+ {
+ Stop = new StopCondition { Type = StopConditionType.UploadDownloadRatioAtLeast, Value = 2 },
+ };
+ var (session, tracker) = Create(settings, totalLength: 10_000_000);
+ await session.StartAsync(Ct);
+
+ await TickAsync(session, 3);
+ Assert.Equal(TorrentSessionState.Downloading, session.State);
+ Assert.Null(session.Snapshot.Ratio);
+
+ await TickAsync(session, 1);
+ Assert.Equal(TorrentSessionState.Stopped, session.State);
+ Assert.Equal(2.0, session.Snapshot.Ratio);
+ Assert.Contains("upload/download ratio", session.Snapshot.StopReason, StringComparison.Ordinal);
+ Assert.Equal(TrackerEvent.Stopped, tracker.Announces.Last().Event);
+ }
+
+ [Fact]
+ public async Task UploadDownloadRatioStopWorksAtFractionalTarget()
+ {
+ var settings = QuietSettings() with
+ {
+ UploadRateBytes = 60 * KiB,
+ DownloadRateBytes = 40 * KiB,
+ Stop = new StopCondition { Type = StopConditionType.UploadDownloadRatioAtLeast, Value = 1.5 },
+ };
+ var (session, _) = Create(settings, totalLength: 10_000_000);
+ await session.StartAsync(Ct);
+
+ await TickAsync(session, 2);
+ Assert.Equal(TorrentSessionState.Downloading, session.State);
+
+ await TickAsync(session, 1);
+ Assert.Equal(TorrentSessionState.Stopped, session.State);
+ Assert.Contains("upload/download ratio", session.Snapshot.StopReason, StringComparison.Ordinal);
+ }
+
+ [Fact]
+ public async Task UploadDownloadRatioStopDoesNotTriggerWithoutDownloads()
+ {
+ var settings = QuietSettings() with
+ {
+ FinishedPercent = 100,
+ Stop = new StopCondition { Type = StopConditionType.UploadDownloadRatioAtLeast, Value = 1 },
+ };
+ var (session, _) = Create(settings);
+ await session.StartAsync(Ct);
+
+ await TickAsync(session, 10);
+ Assert.Equal(TorrentSessionState.Seeding, session.State);
+ Assert.Null(session.Snapshot.Ratio);
+ }
+
+ [Fact]
+ public async Task UploadDownloadRatioStopIgnoresNonPositiveTargets()
+ {
+ var settings = QuietSettings() with
+ {
+ Stop = new StopCondition { Type = StopConditionType.UploadDownloadRatioAtLeast, Value = 0 },
+ };
+ var (session, _) = Create(settings, totalLength: 10_000_000);
+ await session.StartAsync(Ct);
+
+ await TickAsync(session, 10);
+ Assert.Equal(TorrentSessionState.Downloading, session.State);
+ }
+
[Fact]
public async Task TrackerFailureStopsWithErrorUnlessIgnored()
{
diff --git a/src/RatioMaster.Core.Tests/Settings/SettingsAndSessionTests.cs b/src/RatioMaster.Core.Tests/Settings/SettingsAndSessionTests.cs
index 66f0c56..f142744 100644
--- a/src/RatioMaster.Core.Tests/Settings/SettingsAndSessionTests.cs
+++ b/src/RatioMaster.Core.Tests/Settings/SettingsAndSessionTests.cs
@@ -70,6 +70,24 @@ public void SettingsRoundTrip()
Assert.Equal(StopConditionType.UploadedAboveMb, loaded.DefaultTorrentSettings.Stop.Type);
}
+ [Fact]
+ public void UploadDownloadRatioStopRoundTripsWithOldStopTypeValuesUnchanged()
+ {
+ Assert.Equal(6, (int)StopConditionType.LeecherSeederRatioBelow);
+ Assert.Equal(7, (int)StopConditionType.UploadDownloadRatioAtLeast);
+
+ var settings = new TorrentSettings
+ {
+ Stop = new StopCondition { Type = StopConditionType.UploadDownloadRatioAtLeast, Value = 1.75 },
+ };
+ var json = System.Text.Json.JsonSerializer.Serialize(settings, CoreJsonContext.Default.TorrentSettings);
+ var restored = System.Text.Json.JsonSerializer.Deserialize(json, CoreJsonContext.Default.TorrentSettings);
+
+ Assert.NotNull(restored);
+ Assert.Equal(StopConditionType.UploadDownloadRatioAtLeast, restored.Stop.Type);
+ Assert.Equal(1.75, restored.Stop.Value);
+ }
+
[Fact]
public void SettingsFallBackToDefaultsWhenMissingOrCorrupt()
{
diff --git a/src/RatioMaster.Core/Resources/Strings.ar.resx b/src/RatioMaster.Core/Resources/Strings.ar.resx
index 702a472..ecace49 100644
--- a/src/RatioMaster.Core/Resources/Strings.ar.resx
+++ b/src/RatioMaster.Core/Resources/Strings.ar.resx
@@ -112,6 +112,9 @@
المُنزِّلون/البذور < {0}
+
+ نسبة الرفع/التنزيل ≥ {0}
+
تم الإيقاف: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.bg.resx b/src/RatioMaster.Core/Resources/Strings.bg.resx
index 1c025ba..508c8d1 100644
--- a/src/RatioMaster.Core/Resources/Strings.bg.resx
+++ b/src/RatioMaster.Core/Resources/Strings.bg.resx
@@ -111,6 +111,9 @@
лийчъри/сийдъри < {0}
+
+ съотношение качване/изтегляне ≥ {0}
+
Спрян: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.cs.resx b/src/RatioMaster.Core/Resources/Strings.cs.resx
index c05fd2b..4ea8351 100644
--- a/src/RatioMaster.Core/Resources/Strings.cs.resx
+++ b/src/RatioMaster.Core/Resources/Strings.cs.resx
@@ -111,6 +111,9 @@
leecheři/seedy < {0}
+
+ poměr odesláno/staženo ≥ {0}
+
Zastaveno: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.da.resx b/src/RatioMaster.Core/Resources/Strings.da.resx
index d90330b..b9fa42a 100644
--- a/src/RatioMaster.Core/Resources/Strings.da.resx
+++ b/src/RatioMaster.Core/Resources/Strings.da.resx
@@ -111,6 +111,9 @@
leechere/seedere < {0}
+
+ upload/download-forhold ≥ {0}
+
Stoppet: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.de.resx b/src/RatioMaster.Core/Resources/Strings.de.resx
index bf49c45..5b15d5f 100644
--- a/src/RatioMaster.Core/Resources/Strings.de.resx
+++ b/src/RatioMaster.Core/Resources/Strings.de.resx
@@ -111,6 +111,9 @@
Leecher/Seeder < {0}
+
+ upload-/Download-Verhältnis ≥ {0}
+
Gestoppt: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.el.resx b/src/RatioMaster.Core/Resources/Strings.el.resx
index d5c3180..d42ca46 100644
--- a/src/RatioMaster.Core/Resources/Strings.el.resx
+++ b/src/RatioMaster.Core/Resources/Strings.el.resx
@@ -111,6 +111,9 @@
λήπτες/διαμοιραστές < {0}
+
+ αναλογία αποστολής/λήψης ≥ {0}
+
Διακόπηκε: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.es.resx b/src/RatioMaster.Core/Resources/Strings.es.resx
index cb808a2..1ee194d 100644
--- a/src/RatioMaster.Core/Resources/Strings.es.resx
+++ b/src/RatioMaster.Core/Resources/Strings.es.resx
@@ -111,6 +111,9 @@
leechers/semillas < {0}
+
+ relación subida/descarga ≥ {0}
+
Detenido: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.et.resx b/src/RatioMaster.Core/Resources/Strings.et.resx
index da62790..76a139e 100644
--- a/src/RatioMaster.Core/Resources/Strings.et.resx
+++ b/src/RatioMaster.Core/Resources/Strings.et.resx
@@ -111,6 +111,9 @@
allalaadijad/jagajad < {0}
+
+ üles-/allalaadimise suhe ≥ {0}
+
Peatatud: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.fi.resx b/src/RatioMaster.Core/Resources/Strings.fi.resx
index 8ffb0f8..9e77667 100644
--- a/src/RatioMaster.Core/Resources/Strings.fi.resx
+++ b/src/RatioMaster.Core/Resources/Strings.fi.resx
@@ -111,6 +111,9 @@
lataajat/jakajat < {0}
+
+ lähetys-/lataussuhde ≥ {0}
+
Pysäytetty: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.fr.resx b/src/RatioMaster.Core/Resources/Strings.fr.resx
index aafd73c..a9c4297 100644
--- a/src/RatioMaster.Core/Resources/Strings.fr.resx
+++ b/src/RatioMaster.Core/Resources/Strings.fr.resx
@@ -111,6 +111,9 @@
leechers/seeders < {0}
+
+ ratio envoi/réception ≥ {0}
+
Arrêté : {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.he.resx b/src/RatioMaster.Core/Resources/Strings.he.resx
index 1c63537..7d1d66c 100644
--- a/src/RatioMaster.Core/Resources/Strings.he.resx
+++ b/src/RatioMaster.Core/Resources/Strings.he.resx
@@ -112,6 +112,9 @@
עלוקות/זורעים < {0}
+
+ יחס העלאה/הורדה ≥ {0}
+
נעצר: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.hi.resx b/src/RatioMaster.Core/Resources/Strings.hi.resx
index 8e39d18..8cfb38e 100644
--- a/src/RatioMaster.Core/Resources/Strings.hi.resx
+++ b/src/RatioMaster.Core/Resources/Strings.hi.resx
@@ -111,6 +111,9 @@
लीचर/सीडर < {0}
+
+ अपलोड/डाउनलोड अनुपात ≥ {0}
+
रोका गया: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.hr.resx b/src/RatioMaster.Core/Resources/Strings.hr.resx
index ef97e62..853ebc2 100644
--- a/src/RatioMaster.Core/Resources/Strings.hr.resx
+++ b/src/RatioMaster.Core/Resources/Strings.hr.resx
@@ -111,6 +111,9 @@
leecheri/seederi < {0}
+
+ omjer slanja/preuzimanja ≥ {0}
+
Zaustavljeno: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.hu.resx b/src/RatioMaster.Core/Resources/Strings.hu.resx
index 4d67705..29f4c77 100644
--- a/src/RatioMaster.Core/Resources/Strings.hu.resx
+++ b/src/RatioMaster.Core/Resources/Strings.hu.resx
@@ -111,6 +111,9 @@
leecherek/seedek < {0}
+
+ feltöltés/letöltés arány ≥ {0}
+
Leállítva: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.id.resx b/src/RatioMaster.Core/Resources/Strings.id.resx
index 209fecc..1f9586f 100644
--- a/src/RatioMaster.Core/Resources/Strings.id.resx
+++ b/src/RatioMaster.Core/Resources/Strings.id.resx
@@ -111,6 +111,9 @@
leecher/seeder < {0}
+
+ rasio unggah/unduh ≥ {0}
+
Dihentikan: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.it.resx b/src/RatioMaster.Core/Resources/Strings.it.resx
index 29c0ffb..d6b8886 100644
--- a/src/RatioMaster.Core/Resources/Strings.it.resx
+++ b/src/RatioMaster.Core/Resources/Strings.it.resx
@@ -111,6 +111,9 @@
leecher/seeder < {0}
+
+ rapporto upload/download ≥ {0}
+
Fermato: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.ja.resx b/src/RatioMaster.Core/Resources/Strings.ja.resx
index d44b38c..5795d56 100644
--- a/src/RatioMaster.Core/Resources/Strings.ja.resx
+++ b/src/RatioMaster.Core/Resources/Strings.ja.resx
@@ -111,6 +111,9 @@
リーチャー/シーダー < {0}
+
+ アップロード/ダウンロード比 ≥ {0}
+
停止:{0}
diff --git a/src/RatioMaster.Core/Resources/Strings.lt.resx b/src/RatioMaster.Core/Resources/Strings.lt.resx
index e1824f5..74f9dfe 100644
--- a/src/RatioMaster.Core/Resources/Strings.lt.resx
+++ b/src/RatioMaster.Core/Resources/Strings.lt.resx
@@ -111,6 +111,9 @@
siuntėjai/skleidėjai < {0}
+
+ įkėlimo / atsisiuntimo santykis ≥ {0}
+
Sustabdytas: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.nb.resx b/src/RatioMaster.Core/Resources/Strings.nb.resx
index a3bbc68..e004ad7 100644
--- a/src/RatioMaster.Core/Resources/Strings.nb.resx
+++ b/src/RatioMaster.Core/Resources/Strings.nb.resx
@@ -111,6 +111,9 @@
snyltere/delere < {0}
+
+ opplastings-/nedlastingsforhold ≥ {0}
+
Stoppet: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.nl.resx b/src/RatioMaster.Core/Resources/Strings.nl.resx
index 79286ac..d4b62ef 100644
--- a/src/RatioMaster.Core/Resources/Strings.nl.resx
+++ b/src/RatioMaster.Core/Resources/Strings.nl.resx
@@ -111,6 +111,9 @@
leechers/seeders < {0}
+
+ upload-/downloadverhouding ≥ {0}
+
Gestopt: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.pl.resx b/src/RatioMaster.Core/Resources/Strings.pl.resx
index 727bdb2..8124180 100644
--- a/src/RatioMaster.Core/Resources/Strings.pl.resx
+++ b/src/RatioMaster.Core/Resources/Strings.pl.resx
@@ -111,6 +111,9 @@
pijawki/seedy < {0}
+
+ stosunek wysyłania do pobierania ≥ {0}
+
Zatrzymano: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.pt-BR.resx b/src/RatioMaster.Core/Resources/Strings.pt-BR.resx
index 9e4c8b3..949e3de 100644
--- a/src/RatioMaster.Core/Resources/Strings.pt-BR.resx
+++ b/src/RatioMaster.Core/Resources/Strings.pt-BR.resx
@@ -111,6 +111,9 @@
leechers/seeds < {0}
+
+ proporção upload/download ≥ {0}
+
Parado: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.pt.resx b/src/RatioMaster.Core/Resources/Strings.pt.resx
index 5663b30..3d9c0d1 100644
--- a/src/RatioMaster.Core/Resources/Strings.pt.resx
+++ b/src/RatioMaster.Core/Resources/Strings.pt.resx
@@ -111,6 +111,9 @@
leechers/sementes < {0}
+
+ rácio envio/transferência ≥ {0}
+
Parado: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.resx b/src/RatioMaster.Core/Resources/Strings.resx
index f2bbfb6..7389050 100644
--- a/src/RatioMaster.Core/Resources/Strings.resx
+++ b/src/RatioMaster.Core/Resources/Strings.resx
@@ -142,6 +142,10 @@
leechers/seeders < {0}
Stop reason, shown after "Stopped: ". {0} = a ratio such as 1.5.
+
+ upload/download ratio ≥ {0}
+ Stop reason: upload divided by download at or above {0}.
+
Stopped: {0}
Log line. {0} = stop reason.
diff --git a/src/RatioMaster.Core/Resources/Strings.ro.resx b/src/RatioMaster.Core/Resources/Strings.ro.resx
index f06c759..943f00b 100644
--- a/src/RatioMaster.Core/Resources/Strings.ro.resx
+++ b/src/RatioMaster.Core/Resources/Strings.ro.resx
@@ -111,6 +111,9 @@
leecheri/seederi < {0}
+
+ raport încărcare/descărcare ≥ {0}
+
Oprit: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.ru.resx b/src/RatioMaster.Core/Resources/Strings.ru.resx
index 9e336c5..38869cc 100644
--- a/src/RatioMaster.Core/Resources/Strings.ru.resx
+++ b/src/RatioMaster.Core/Resources/Strings.ru.resx
@@ -111,6 +111,9 @@
личи/сиды < {0}
+
+ соотношение отдачи/загрузки ≥ {0}
+
Остановлен: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.sk.resx b/src/RatioMaster.Core/Resources/Strings.sk.resx
index 2cafad7..f607f75 100644
--- a/src/RatioMaster.Core/Resources/Strings.sk.resx
+++ b/src/RatioMaster.Core/Resources/Strings.sk.resx
@@ -111,6 +111,9 @@
leecheri/seedy < {0}
+
+ pomer odoslané/stiahnuté ≥ {0}
+
Zastavený: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.sl.resx b/src/RatioMaster.Core/Resources/Strings.sl.resx
index 5041c94..2e08e81 100644
--- a/src/RatioMaster.Core/Resources/Strings.sl.resx
+++ b/src/RatioMaster.Core/Resources/Strings.sl.resx
@@ -111,6 +111,9 @@
pijavke/sejalci < {0}
+
+ razmerje oddano/preneseno ≥ {0}
+
Ustavljen: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.sq.resx b/src/RatioMaster.Core/Resources/Strings.sq.resx
index ee3365f..2cc86bf 100644
--- a/src/RatioMaster.Core/Resources/Strings.sq.resx
+++ b/src/RatioMaster.Core/Resources/Strings.sq.resx
@@ -111,6 +111,9 @@
shkarkues/mbjellës < {0}
+
+ raporti ngarkim/shkarkim ≥ {0}
+
U ndal: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.sr-Cyrl.resx b/src/RatioMaster.Core/Resources/Strings.sr-Cyrl.resx
index 05a9541..a4ec4b4 100644
--- a/src/RatioMaster.Core/Resources/Strings.sr-Cyrl.resx
+++ b/src/RatioMaster.Core/Resources/Strings.sr-Cyrl.resx
@@ -111,6 +111,9 @@
пијавице/сејачи < {0}
+
+ однос отпремања/преузимања ≥ {0}
+
Заустављено: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.sr-Latn.resx b/src/RatioMaster.Core/Resources/Strings.sr-Latn.resx
index d7f8aad..b7fff8c 100644
--- a/src/RatioMaster.Core/Resources/Strings.sr-Latn.resx
+++ b/src/RatioMaster.Core/Resources/Strings.sr-Latn.resx
@@ -111,6 +111,9 @@
pijavice/sejači < {0}
+
+ odnos otpremanja/preuzimanja ≥ {0}
+
Zaustavljeno: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.sv.resx b/src/RatioMaster.Core/Resources/Strings.sv.resx
index 791bb71..f09fc06 100644
--- a/src/RatioMaster.Core/Resources/Strings.sv.resx
+++ b/src/RatioMaster.Core/Resources/Strings.sv.resx
@@ -111,6 +111,9 @@
leechare/seedare < {0}
+
+ uppladdnings-/nedladdningskvot ≥ {0}
+
Stoppad: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.th.resx b/src/RatioMaster.Core/Resources/Strings.th.resx
index b5ee5b9..807ffb2 100644
--- a/src/RatioMaster.Core/Resources/Strings.th.resx
+++ b/src/RatioMaster.Core/Resources/Strings.th.resx
@@ -111,6 +111,9 @@
ลีชเชอร์/ซีดเดอร์ < {0}
+
+ อัตราส่วนอัปโหลด/ดาวน์โหลด ≥ {0}
+
หยุดแล้ว: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.tr.resx b/src/RatioMaster.Core/Resources/Strings.tr.resx
index f46aa5f..6636956 100644
--- a/src/RatioMaster.Core/Resources/Strings.tr.resx
+++ b/src/RatioMaster.Core/Resources/Strings.tr.resx
@@ -111,6 +111,9 @@
çeken/gönderen < {0}
+
+ yükleme/indirme oranı ≥ {0}
+
Durduruldu: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.uk.resx b/src/RatioMaster.Core/Resources/Strings.uk.resx
index 9e4bfd1..2a87c54 100644
--- a/src/RatioMaster.Core/Resources/Strings.uk.resx
+++ b/src/RatioMaster.Core/Resources/Strings.uk.resx
@@ -111,6 +111,9 @@
лічери/сідери < {0}
+
+ співвідношення віддачі/завантаження ≥ {0}
+
Зупинено: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.vi.resx b/src/RatioMaster.Core/Resources/Strings.vi.resx
index a1d8355..95961af 100644
--- a/src/RatioMaster.Core/Resources/Strings.vi.resx
+++ b/src/RatioMaster.Core/Resources/Strings.vi.resx
@@ -111,6 +111,9 @@
leecher/seeder < {0}
+
+ tỷ lệ tải lên/tải xuống ≥ {0}
+
Đã dừng: {0}
diff --git a/src/RatioMaster.Core/Resources/Strings.zh-Hans.resx b/src/RatioMaster.Core/Resources/Strings.zh-Hans.resx
index 8e368a9..455e63b 100644
--- a/src/RatioMaster.Core/Resources/Strings.zh-Hans.resx
+++ b/src/RatioMaster.Core/Resources/Strings.zh-Hans.resx
@@ -111,6 +111,9 @@
下载者/做种者 < {0}
+
+ 上传/下载比率 ≥ {0}
+
已停止:{0}
diff --git a/src/RatioMaster.Core/Resources/Strings.zh-Hant.resx b/src/RatioMaster.Core/Resources/Strings.zh-Hant.resx
index 6887adf..7b82d38 100644
--- a/src/RatioMaster.Core/Resources/Strings.zh-Hant.resx
+++ b/src/RatioMaster.Core/Resources/Strings.zh-Hant.resx
@@ -111,6 +111,9 @@
下載者/做種者 < {0}
+
+ 上傳/下載比率 ≥ {0}
+
已停止:{0}
diff --git a/src/RatioMaster.Core/Sessions/StopCondition.cs b/src/RatioMaster.Core/Sessions/StopCondition.cs
index 3927574..61148e4 100644
--- a/src/RatioMaster.Core/Sessions/StopCondition.cs
+++ b/src/RatioMaster.Core/Sessions/StopCondition.cs
@@ -12,6 +12,7 @@ public enum StopConditionType
UploadedAboveMb,
DownloadedAboveMb,
LeecherSeederRatioBelow,
+ UploadDownloadRatioAtLeast,
}
/// An auto-stop condition.
diff --git a/src/RatioMaster.Core/Sessions/TorrentSession.cs b/src/RatioMaster.Core/Sessions/TorrentSession.cs
index 64f8ce3..f86ce10 100644
--- a/src/RatioMaster.Core/Sessions/TorrentSession.cs
+++ b/src/RatioMaster.Core/Sessions/TorrentSession.cs
@@ -781,6 +781,8 @@ private async Task HandleFailureAsync(AnnounceResponse? response, Cancella
return string.Format(CultureInfo.CurrentCulture, Strings.StopReasonDownloadedAbove, Threshold(stop.Value));
case StopConditionType.LeecherSeederRatioBelow when this.seeders is { } sd and > 0 && this.leechers is { } lc && lc / (double)sd < stop.Value:
return string.Format(CultureInfo.CurrentCulture, Strings.StopReasonRatioBelow, Threshold(stop.Value, "0.###"));
+ case StopConditionType.UploadDownloadRatioAtLeast when stop.Value > 0 && this.ComputeRatio() is { } ratio && ratio >= stop.Value:
+ return string.Format(CultureInfo.CurrentCulture, Strings.StopReasonUploadDownloadRatioAtLeast, Threshold(stop.Value, "0.###"));
default:
return null;
}