Always repair with 2 files

This commit is contained in:
Ben Sarmiento
2023-11-25 17:56:54 +01:00
parent 0fdea17c91
commit 0e7f99cef6

View File

@@ -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") {