From a8ad0addffa1aa4ce794954e90b53e9a136cbd21 Mon Sep 17 00:00:00 2001 From: nuxen Date: Fri, 2 Feb 2024 15:52:31 +0100 Subject: [PATCH] fix(processor): ignore incomplete torrents --- internal/http/processor.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/http/processor.go b/internal/http/processor.go index 940aeff..d5c7610 100644 --- a/internal/http/processor.go +++ b/internal/http/processor.go @@ -274,6 +274,11 @@ func (p processor) ProcessSeasonPack(w netHTTP.ResponseWriter, r *netHTTP.Reques continue } + if child.T.Progress < 1.0 { + p.log.Error().Msgf("download incomplete, skipping match: %q", child.T.Name) + continue + } + fileName := "" for _, v := range *m { fileName = v.Name