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))