This commit is contained in:
Simon Ding
2024-07-12 16:28:46 +08:00
parent 7597e6a147
commit 5ddac22d10
4 changed files with 6 additions and 6 deletions

View File

@@ -106,10 +106,10 @@ func (t *Torrent) Start() error {
return t.c.TorrentStartIDs(context.TODO(), []int64{t.ID})
}
func (t *Torrent) Remove(deleteData bool) error {
func (t *Torrent) Remove() error {
return t.c.TorrentRemove(context.TODO(), transmissionrpc.TorrentRemovePayload{
IDs: []int64{t.ID},
DeleteLocalData: deleteData,
DeleteLocalData: true,
})
}