feat(downloadclients): qBit add rule UploadSpeedThreshold (#633)

feat(downloadclients): qbit add rule upload speed threshold
This commit is contained in:
ze0s 2023-01-08 18:34:06 +01:00 committed by GitHub
parent 6194ca951c
commit d437f8455e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 35 additions and 12 deletions

View file

@ -269,12 +269,20 @@ function FormFieldsRules() {
/>
{settings.rules?.ignore_slow_torrents === true && (
<NumberFieldWide
name="settings.rules.download_speed_threshold"
label="Download speed threshold"
placeholder="in KB/s"
help="If download speed is below this when max active downloads is hit, download anyways. KB/s"
/>
<>
<NumberFieldWide
name="settings.rules.download_speed_threshold"
label="Download speed threshold"
placeholder="in KB/s"
help="If download speed is below this when max active downloads is hit, download anyways. KB/s"
/>
<NumberFieldWide
name="settings.rules.upload_speed_threshold"
label="Upload speed threshold"
placeholder="in KB/s"
help="If upload speed is below this when max active downloads is hit, download anyways. KB/s"
/>
</>
)}
</>
)}

View file

@ -25,6 +25,7 @@ interface DownloadClientRules {
max_active_downloads: number;
ignore_slow_torrents: boolean;
download_speed_threshold: number;
upload_speed_threshold: number;
}
interface DownloadClientBasicAuth {