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