Proper logging and fixing for unavailable files

This commit is contained in:
Ben Sarmiento
2023-11-26 13:04:40 +01:00
parent c715a4a833
commit 5f65a3873b
5 changed files with 40 additions and 20 deletions

View File

@@ -74,7 +74,7 @@ func handleListOfTorrents(requestPath string, t *torrent.TorrentManager) (*strin
var allTorrents []*torrent.Torrent
torrents.IterCb(func(_ string, tor *torrent.Torrent) {
if tor.InProgress() {
if tor.AllInProgress() {
return
}
allTorrents = append(allTorrents, tor)