diff --git a/command/main.go b/command/main.go index cd5d2e1..994ac34 100644 --- a/command/main.go +++ b/command/main.go @@ -110,7 +110,7 @@ func (a *AddCmd) Run(d Distro) error { } func (r *RemoveCmd) 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 } diff --git a/parrot/main.go b/parrot/main.go index a11140c..78e99f6 100644 --- a/parrot/main.go +++ b/parrot/main.go @@ -17,7 +17,7 @@ type Parrot struct { } func (p Parrot) AddNewTorrents(transmissionbt *transmissionrpc.Client) error { - p.URL = fmt.Sprintf("https://deb.parrot.sh/parrot/iso/%s/", p.Relver) + p.URL = fmt.Sprintf("https://deb.parrot.sh/direct///parrot/iso/%s/", p.Relver) respBody, err := common.GetResponse(p.URL) if err != nil { return err