From afc7d1a9648e91f1ba1e83d7f1e282d80a17c2cc Mon Sep 17 00:00:00 2001 From: Sam Heinz <54530346+asylumexp@users.noreply.github.com> Date: Mon, 17 Mar 2025 00:50:51 +1000 Subject: [PATCH] [TB] fix: replace Contains with EndsWith --- .../Services/TorrentClients/TorBoxTorrentClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs b/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs index 62aff18..329c872 100644 --- a/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs +++ b/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs @@ -363,7 +363,7 @@ public class TorBoxTorrentClient(ILogger logger, IHttpClien var innerFolder = Directory.GetDirectories(hashDir)[0]; var moveDir = extractPath; - if (!extractPath.Contains(_torrent.RdName!)) + if (!extractPath.EndsWith(_torrent.RdName!)) { moveDir = hashDir; }