Clear brokenlinks
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user