Update Parrot OS URL

This commit is contained in:
Jeffrey Serio 2023-07-24 20:00:14 -05:00
parent 70f4d385fc
commit 4c494b635f
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -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