From 4b08a8efdf59eb6c2d75524711bc89305f2b15f4 Mon Sep 17 00:00:00 2001 From: Ben Sarmiento Date: Thu, 18 Jan 2024 23:39:38 +0100 Subject: [PATCH] Also delete from API --- internal/torrent/refresh.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/torrent/refresh.go b/internal/torrent/refresh.go index 6f3fb19..d4494cc 100644 --- a/internal/torrent/refresh.go +++ b/internal/torrent/refresh.go @@ -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