Revert "[TB] Download via zip if file count is over 50"

This reverts commit 6afef14855.
This commit is contained in:
Sam Heinz 2025-01-02 21:21:52 +10:00
parent fa0f535858
commit 409e47920e

View file

@ -286,19 +286,11 @@ public class TorBoxTorrentClient(ILogger<TorBoxTorrentClient> 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;
}