diff --git a/internal/torrent/manager.go b/internal/torrent/manager.go index d603a4a..271bd97 100644 --- a/internal/torrent/manager.go +++ b/internal/torrent/manager.go @@ -557,7 +557,7 @@ func (t *TorrentManager) repair(torrentID string, selectedFiles []File, tryReins t.reinsertTorrent(torrent, missingFiles2, false) } } else { - log.Println("Cannot repair as the only 1 torrent is already broken in RD", torrent.ID, torrent.Name) + log.Println("Cannot repair as the single link cached in RD for this torrent is already broken", torrent.ID, torrent.Name) return } log.Println("Waiting for downloads to finish") diff --git a/internal/universal/get.go b/internal/universal/get.go index d7d0224..41eef1f 100644 --- a/internal/universal/get.go +++ b/internal/universal/get.go @@ -78,6 +78,7 @@ func HandleGetRequest(w http.ResponseWriter, r *http.Request, t *torrent.Torrent t.HideTheFile(torrent, file) } http.Redirect(w, r, "https://send.nukes.wtf/tDeTd0", http.StatusFound) + return } else if resp.Filename != filenameV2 { actualExt := filepath.Ext(resp.Filename) expectedExt := filepath.Ext(filenameV2)