feat(actions): qBittorrent add first-last piece priority (#1517)

* feat(actions): qBittorrent add first/last piece priority

* removed accidental change

* fix: scanrow order

* fix: spaces vs tabs

* bump(deps): upgrade go-qbittorrent to v1.9.0

* fix(test): add missing colon

* fix(database): sqlite remove duplicate
This commit is contained in:
s0up4200 2024-04-18 14:47:36 +02:00 committed by GitHub
parent 7b9993b296
commit 56ef3a5402
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 36 additions and 7 deletions

View file

@ -51,6 +51,7 @@ export function Actions() {
save_path: "",
paused: false,
ignore_rules: false,
first_last_piece_prio: false,
skip_hash_check: false,
content_layout: "" || undefined,
priority: "" || undefined,

View file

@ -109,6 +109,11 @@ export const QBittorrent = ({ idx, action, clients }: ClientActionProps) => (
label="Skip hash check"
description="Add torrent and skip hash check"
/>
<Input.SwitchGroup
name={`actions.${idx}.first_last_piece_prio`}
label="Download first and last pieces first"
description="Add torrent and download first and last pieces first"
/>
</FilterSection.HalfRow>
<FilterSection.HalfRow>
<Input.Select

View file

@ -92,7 +92,8 @@ interface Action {
save_path?: string;
paused?: boolean;
ignore_rules?: boolean;
skip_hash_check: boolean;
first_last_piece_prio?: boolean;
skip_hash_check?: boolean;
content_layout?: ActionContentLayout;
priority?: ActionPriorityLayout;
limit_upload_speed?: number;