From 49b524ada6fdb7fabe0f5ef95c62a1c9ad5e7830 Mon Sep 17 00:00:00 2001 From: Ben Sarmiento Date: Sat, 27 Jan 2024 00:02:52 +0100 Subject: [PATCH] Clear brokenlinks --- internal/torrent/repair.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/torrent/repair.go b/internal/torrent/repair.go index 8c1d2a5..4505d3f 100644 --- a/internal/torrent/repair.go +++ b/internal/torrent/repair.go @@ -151,6 +151,7 @@ func (t *TorrentManager) repair(torrent *Torrent) { file.Link = info.Links[ix] ix++ }) + torrent.BrokenLinks = mapset.NewSet[string]() t.log.Infof("Successfully repaired torrent %s using repair_method#1", t.GetKey(torrent)) return } @@ -506,6 +507,7 @@ func (t *TorrentManager) handleFixers(fixer realdebrid.Torrent) *Torrent { } } }) + torrent.BrokenLinks = mapset.NewSet[string]() t.log.Infof("Successfully repaired torrent %s using repair_method#2", t.GetKey(torrent)) } else { t.log.Warnf("repair_method#2: Fixer is done but torrent %s is still broken; let's keep the fixer", t.GetKey(torrent))