From 77487a6ac3d4b9e140c4e2cf50673d571210b104 Mon Sep 17 00:00:00 2001 From: Ben Sarmiento Date: Fri, 10 Nov 2023 21:41:56 +0100 Subject: [PATCH] Remove destructive stuffs --- internal/torrent/manager.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/internal/torrent/manager.go b/internal/torrent/manager.go index a7eabc8..2775279 100644 --- a/internal/torrent/manager.go +++ b/internal/torrent/manager.go @@ -470,7 +470,6 @@ func (t *TorrentManager) organizeChaos(info *realdebrid.Torrent, selectedFiles * } } if !found { - t.log.Debugf("Found a file that is NOT in the selection for torrent id=%s: %s %v", info.ID, result.Response.Filename, result.Response.Streamable) if result.Response.Streamable == 1 { selectedFiles.Set(filepath.Base(result.Response.Filename), &File{ File: realdebrid.File{ @@ -522,13 +521,6 @@ func (t *TorrentManager) repairAll() { // t.repair(&info, true) break // only repair the first one for repair and then move on } - if len(info.Links) == 0 && info.Progress == 100 { - // If the torrent has no links - // and already processing repair - // delete it! - t.log.Infof("Deleting broken torrent id=%s as it doesn't contain any files", info.ID) - t.rd.DeleteTorrent(info.ID) - } } } }