mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-07 10:37:39 +08:00
fix: nil
This commit is contained in:
@@ -5,7 +5,7 @@ type Torrent interface {
|
||||
Progress() int
|
||||
Stop() error
|
||||
Start() error
|
||||
Remove(deleteData bool) error
|
||||
Remove() error
|
||||
Save() string
|
||||
Exists() bool
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user