From 409e47920e53393b2293e6118a63d4eb6eec3e3c Mon Sep 17 00:00:00 2001 From: Sam Heinz <54530346+asylumexp@users.noreply.github.com> Date: Thu, 2 Jan 2025 21:21:52 +1000 Subject: [PATCH] Revert "[TB] Download via zip if file count is over 50" This reverts commit 6afef148551680db0baabc52b366f569aee2d67d. --- .../Services/TorrentClients/TorBoxTorrentClient.cs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs b/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs index 6146d54..1a9e5dc 100644 --- a/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs +++ b/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs @@ -286,19 +286,11 @@ public class TorBoxTorrentClient(ILogger logger, IHttpClien var torrentId = await GetClient().Torrents.GetHashInfoAsync(torrent.Hash, skipCache: true); - if (torrent.Files.Count >= 50) + foreach (var file in torrent.Files) { - var newFile = $"https://torbox.app/fakedl/{torrentId?.Id}/zip"; + var newFile = $"https://torbox.app/fakedl/{torrentId?.Id}/{file.Id}"; files.Add(newFile); } - else - { - foreach (var file in torrent.Files) - { - var newFile = $"https://torbox.app/fakedl/{torrentId?.Id}/{file.Id}"; - files.Add(newFile); - } - } return files; }