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

@ -135,6 +135,9 @@ func (s *service) prepareQbitOptions(action *domain.Action) (map[string]string,
if action.SkipHashCheck {
opts.SkipHashCheck = true
}
if action.FirstLastPiecePrio {
opts.FirstLastPiecePrio = true
}
if action.ContentLayout != "" {
if action.ContentLayout == domain.ActionContentLayoutSubfolderCreate {
opts.ContentLayout = qbittorrent.ContentLayoutSubfolderCreate