From 0e7f99cef6e3950ba859cb6334652ca7085f616d Mon Sep 17 00:00:00 2001 From: Ben Sarmiento Date: Sat, 25 Nov 2023 17:56:54 +0100 Subject: [PATCH] Always repair with 2 files --- internal/torrent/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/torrent/manager.go b/internal/torrent/manager.go index ee4205b..8deb86f 100644 --- a/internal/torrent/manager.go +++ b/internal/torrent/manager.go @@ -670,7 +670,7 @@ func (t *TorrentManager) Repair(accessKey string) { // if we download a single file, it will be named differently // so we need to download 1 extra file to preserve the name // this is only relevant if we enable retain_rd_torrent_name - if t.cfg.EnableRetainRDTorrentName() && len(missingFiles) == 1 && streamableCount > 1 { + if len(missingFiles) == 1 && streamableCount > 1 { // add the first file link encountered with a prefix of http for _, file := range torrent.SelectedFiles.Items() { if strings.HasPrefix(file.Link, "http") {