Add callback URL for post-processing

This commit is contained in:
Mukhtar Akere
2025-08-27 13:02:43 +01:00
parent 267cc2d32b
commit 83058489b6
8 changed files with 80 additions and 94 deletions

View File

@@ -59,6 +59,8 @@ func (c *Cache) markAsSuccessfullyReinserted(torrentId string) {
}
}
// GetBrokenFiles checks the files in the torrent for broken links.
// It also attempts to reinsert the torrent if any files are broken.
func (c *Cache) GetBrokenFiles(t *CachedTorrent, filenames []string) []string {
files := make(map[string]types.File)
repairStrategy := config.Get().Repair.Strategy