mirror of
https://codeberg.org/hyperreal/go-torrent-helper
synced 2024-11-01 08:43:10 +01:00
Update Parrot OS URL
This commit is contained in:
parent
70f4d385fc
commit
4c494b635f
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user