From 6fc8015887c09db3c6a0bbfc03564651618d765d Mon Sep 17 00:00:00 2001 From: ze0s <43699394+zze0s@users.noreply.github.com> Date: Fri, 23 Sep 2022 19:42:47 +0200 Subject: [PATCH] fix(clients): rtorrent use `directory` instead of `base_path` (#472) fix(clients): rtorrent use directory instead of base_path --- internal/action/rtorrent.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/internal/action/rtorrent.go b/internal/action/rtorrent.go index cacc1c4..97ef720 100644 --- a/internal/action/rtorrent.go +++ b/internal/action/rtorrent.go @@ -2,10 +2,9 @@ package action import ( "context" - "os" - "github.com/autobrr/autobrr/internal/domain" "github.com/autobrr/autobrr/pkg/errors" + "os" "github.com/mrobinsn/go-rtorrent/rtorrent" ) @@ -47,13 +46,13 @@ func (s *service) rtorrent(action domain.Action, release domain.Release) ([]stri if action.Label != "" { args = append(args, &rtorrent.FieldValue{ - Field: "d.custom1", + Field: rtorrent.DLabel, Value: action.Label, }) } if action.SavePath != "" { args = append(args, &rtorrent.FieldValue{ - Field: "d.base_path", + Field: rtorrent.DDirectory, Value: action.SavePath, }) }