Revert "[TB] Download via zip if file count is over 50"
This reverts commit 6afef14855.
This commit is contained in:
parent
fa0f535858
commit
409e47920e
1 changed files with 2 additions and 10 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue