feat(actions): deluge v2 add skip recheck (#1321)

* feat(actions): add skip recheck for deluge v2

* chore(deps): update go-deluge to v1.2.0
This commit is contained in:
soup 2023-12-28 16:59:17 +01:00 committed by GitHub
parent ebbd851a2e
commit 2a4fb7750b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 3 deletions

2
go.mod
View file

@ -9,7 +9,7 @@ require (
github.com/Masterminds/squirrel v1.5.4
github.com/anacrolix/torrent v1.53.1
github.com/asaskevich/EventBus v0.0.0-20200907212545-49d423059eef
github.com/autobrr/go-deluge v1.1.0
github.com/autobrr/go-deluge v1.2.0
github.com/autobrr/go-qbittorrent v1.8.1
github.com/autobrr/go-rtorrent v1.10.0
github.com/avast/retry-go v3.0.0+incompatible

4
go.sum
View file

@ -92,8 +92,8 @@ github.com/andybalholm/cascadia v1.3.2/go.mod h1:7gtRlve5FxPPgIgX36uWBX58OdBsSS6
github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ=
github.com/asaskevich/EventBus v0.0.0-20200907212545-49d423059eef h1:2JGTg6JapxP9/R33ZaagQtAM4EkkSYnIAlOG5EI8gkM=
github.com/asaskevich/EventBus v0.0.0-20200907212545-49d423059eef/go.mod h1:JS7hed4L1fj0hXcyEejnW57/7LCetXggd+vwrRnYeII=
github.com/autobrr/go-deluge v1.1.0 h1:wT+FUxjNrYnUhOcZmZSIApCz4tT2n0FzXVfuvOBtcIM=
github.com/autobrr/go-deluge v1.1.0/go.mod h1:ndiXT1eHWv/ATNk9TpE8GHIs8OSSUnsImt4Syk+y5LM=
github.com/autobrr/go-deluge v1.2.0 h1:psqHrH3nhriRAuxEiN8HpjH/2IW4DsNUxVavoqfi2xI=
github.com/autobrr/go-deluge v1.2.0/go.mod h1:ndiXT1eHWv/ATNk9TpE8GHIs8OSSUnsImt4Syk+y5LM=
github.com/autobrr/go-qbittorrent v1.8.1 h1:QQxuEaCKThTmV0LhU6tHZQvYv+eCrKmiCRY0G1RiJG4=
github.com/autobrr/go-qbittorrent v1.8.1/go.mod h1:z88B3+O/1/3doQABErvIOOxE4hjpmIpulu6XzDG/q78=
github.com/autobrr/go-rtorrent v1.10.0 h1:SCs7Rdi1BZ3MxNoVIdWK0qTUHQyhSj9rEU8KUTRi4Ug=

View file

@ -335,6 +335,9 @@ func (s *service) prepareDelugeOptions(action *domain.Action) (deluge.Options, e
maxUL := int(action.LimitUploadSpeed)
options.MaxUploadSpeed = &maxUL
}
if action.SkipHashCheck {
options.V2.SeedMode = &action.SkipHashCheck
}
return options, nil
}

View file

@ -43,6 +43,14 @@ export const Deluge = ({ idx, action, clients }: ClientActionProps) => (
description="Add torrent as paused"
/>
</FilterSection.HalfRow>
<FilterSection.HalfRow>
<Input.SwitchGroup
name={`actions.${idx}.skip_hash_check`}
label="Skip hash check"
description="Add torrent and skip hash check"
tooltip={<div>This will only work on Deluge v2.</div>}
/>
</FilterSection.HalfRow>
</FilterSection.Layout>
<CollapsibleSection