From 2a4fb7750b6232a5d1357151b35687e4c2f6db12 Mon Sep 17 00:00:00 2001 From: soup Date: Thu, 28 Dec 2023 16:59:17 +0100 Subject: [PATCH] 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 --- go.mod | 2 +- go.sum | 4 ++-- internal/action/deluge.go | 3 +++ .../filters/sections/action_components/ActionDeluge.tsx | 8 ++++++++ 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 4d6b4ef..eeca4fb 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index adf48bc..0e783af 100644 --- a/go.sum +++ b/go.sum @@ -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= diff --git a/internal/action/deluge.go b/internal/action/deluge.go index 91d0498..635aa74 100644 --- a/internal/action/deluge.go +++ b/internal/action/deluge.go @@ -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 } diff --git a/web/src/screens/filters/sections/action_components/ActionDeluge.tsx b/web/src/screens/filters/sections/action_components/ActionDeluge.tsx index 6b0676e..107a8b0 100644 --- a/web/src/screens/filters/sections/action_components/ActionDeluge.tsx +++ b/web/src/screens/filters/sections/action_components/ActionDeluge.tsx @@ -43,6 +43,14 @@ export const Deluge = ({ idx, action, clients }: ClientActionProps) => ( description="Add torrent as paused" /> + + This will only work on Deluge v2.} + /> +