[TB] fix: replace Contains with EndsWith

This commit is contained in:
Sam Heinz 2025-03-17 00:50:51 +10:00
parent 7a822bef5c
commit afc7d1a964

View file

@ -363,7 +363,7 @@ public class TorBoxTorrentClient(ILogger<TorBoxTorrentClient> logger, IHttpClien
var innerFolder = Directory.GetDirectories(hashDir)[0];
var moveDir = extractPath;
if (!extractPath.Contains(_torrent.RdName!))
if (!extractPath.EndsWith(_torrent.RdName!))
{
moveDir = hashDir;
}