diff --git a/server/RdtClient.Service/RdtClient.Service.csproj b/server/RdtClient.Service/RdtClient.Service.csproj index 71d18a9..16c826c 100644 --- a/server/RdtClient.Service/RdtClient.Service.csproj +++ b/server/RdtClient.Service/RdtClient.Service.csproj @@ -22,7 +22,7 @@ - + diff --git a/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs b/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs index 6cf14d8..9d8a57b 100644 --- a/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs +++ b/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs @@ -168,15 +168,13 @@ public class TorBoxTorrentClient(ILogger logger, IHttpClien public async Task Delete(String torrentId) { - await GetClient().Torrents.ControlAsync(Convert.ToInt32(torrentId), "delete"); + await GetClient().Torrents.ControlAsync(torrentId, "delete"); } public async Task Unrestrict(String link) { var torrentFile = new List(link.Split('/')); - var torrentID = torrentFile[4]; - var fileID = torrentFile[5]; - var result = await GetClient().Unrestrict.LinkAsync(torrentID, fileID); + var result = await GetClient().Unrestrict.LinkAsync(torrentID: torrentFile[4], fileID: torrentFile[5]); if (result.Error != null) {