[TB] Download files individually rather than via zip

This commit is contained in:
Sam Heinz 2024-11-27 05:01:55 +10:00
parent 8bd83dffbf
commit 8b16bd8ee2

View file

@ -291,8 +291,11 @@ public class TorBoxTorrentClient(ILogger<TorBoxTorrentClient> logger, IHttpClien
var torrentId = await GetClient().Torrents.GetHashInfoAsync(torrent.Hash, skipCache: true);
var newFile = $"https://torbox.app/fakedl/{torrentId?.Id}/zip";
files.Add(newFile);
foreach (var file in torrent.Files!)
{
var newFile = $"https://torbox.app/fakedl/{torrentId?.Id}/{file.Id}";
files.Add(newFile);
}
return files;
}