mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00
fix(download-client): Deluge push error (#1719)
fix(downloadclient): Deluge push error
This commit is contained in:
parent
ac6f62db99
commit
2681c2357d
12 changed files with 12 additions and 5 deletions
|
@ -23,6 +23,7 @@ func (s *service) deluge(ctx context.Context, action *domain.Action, release dom
|
|||
if err != nil {
|
||||
return nil, errors.Wrap(err, "could not get client with id %d", action.ClientID)
|
||||
}
|
||||
action.Client = client
|
||||
|
||||
if !client.Enabled {
|
||||
return nil, errors.New("client %s %s not enabled", client.Type, client.Name)
|
||||
|
@ -30,7 +31,7 @@ func (s *service) deluge(ctx context.Context, action *domain.Action, release dom
|
|||
|
||||
var rejections []string
|
||||
|
||||
switch action.Client.Type {
|
||||
switch client.Type {
|
||||
case "DELUGE_V1":
|
||||
rejections, err = s.delugeV1(ctx, client, action, release)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue