Also delete from API
This commit is contained in:
@@ -33,6 +33,7 @@ func (t *TorrentManager) RefreshTorrents() []string {
|
||||
brokenFiles := getBrokenFiles(torrent)
|
||||
info, err := t.redownloadTorrent(torrent, "")
|
||||
if err == nil && info.Progress == 100 && !t.isStillBroken(info, brokenFiles) {
|
||||
t.Api.DeleteTorrent(instances[idx].ID)
|
||||
t.onlyForRepair.Remove(instances[idx].ID)
|
||||
}
|
||||
infoChan <- nil
|
||||
|
||||
Reference in New Issue
Block a user