diff --git a/internal/dav/listing.go b/internal/dav/listing.go index 5ffd715..c1c7ef6 100644 --- a/internal/dav/listing.go +++ b/internal/dav/listing.go @@ -72,6 +72,9 @@ func handleListTorrents(w http.ResponseWriter, requestPath string, t *torrent.To var allTorrents []*torrent.Torrent torrents.IterCb(func(_ string, tor *torrent.Torrent) { + if tor.InProgress() { + return + } allTorrents = append(allTorrents, tor) }) sort.Slice(allTorrents, func(i, j int) bool { diff --git a/internal/http/listing.go b/internal/http/listing.go index 4073750..6f1baa4 100644 --- a/internal/http/listing.go +++ b/internal/http/listing.go @@ -71,10 +71,20 @@ func handleListOfTorrents(requestPath string, t *torrent.TorrentManager) (*strin } htmlDoc := "