diff --git a/command/main.go b/command/main.go index cf28bd5..cd5d2e1 100644 --- a/command/main.go +++ b/command/main.go @@ -97,7 +97,7 @@ func (l *ListCmd) Init(args []string) error { } func (a *AddCmd) Run(d Distro) error { - client, err := transmissionrpc.New(os.Getenv("TRANSMISSION_RPC_URL"), "", "", nil) + client, err := transmissionrpc.New(os.Getenv("TRANSMISSION_RPC_URL"), os.Getenv("TRANSMISSION_RPC_USER"), os.Getenv("TRANSMISSION_RPC_PASSWD"), nil) if err != nil { return err }