From 754588091d44c59d13dddf9f07b64dde8abd817a Mon Sep 17 00:00:00 2001 From: Sam Heinz <54530346+asylumexp@users.noreply.github.com> Date: Thu, 29 Aug 2024 07:16:54 +1000 Subject: [PATCH] Fix seeding --- .../Services/TorrentClients/TorBoxTorrentClient.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs b/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs index 1d031f0..30dd54d 100644 --- a/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs +++ b/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs @@ -123,14 +123,14 @@ public class TorBoxTorrentClient(ILogger logger, IHttpClien public async Task AddMagnet(String magnetLink) { - var result = await GetClient().Torrents.AddMagnetAsync(magnetLink, seeding: 3); + var result = await GetClient().Torrents.AddMagnetAsync(magnetLink, seeding: 2); return result.Data?.Hash?.ToString()!; } public async Task AddFile(Byte[] bytes) { - var result = await GetClient().Torrents.AddFileAsync(bytes, seeding: 3); + var result = await GetClient().Torrents.AddFileAsync(bytes, seeding: 2); return result.Data?.Hash?.ToString()!; } @@ -210,7 +210,7 @@ public class TorBoxTorrentClient(ILogger logger, IHttpClien torrent.RdSeeders = rdTorrent.Seeders; torrent.RdStatusRaw = rdTorrent.Status; - if (rdTorrent.Host == "true") + if (rdTorrent.Host == "True") { torrent.RdStatus = TorrentStatus.Finished; } @@ -225,8 +225,8 @@ public class TorBoxTorrentClient(ILogger logger, IHttpClien "paused" => TorrentStatus.Downloading, "downloading" => TorrentStatus.Downloading, "completed" => TorrentStatus.Downloading, - "uploading" => TorrentStatus.Finished, - "uploading (no peers)" => TorrentStatus.Finished, + "uploading" => TorrentStatus.Downloading, + "uploading (no peers)" => TorrentStatus.Downloading, "stalled" => TorrentStatus.Downloading, "stalled (no seeds)" => TorrentStatus.Downloading, "cached" => TorrentStatus.Finished,