[TB] fix: replace Contains with EndsWith
This commit is contained in:
parent
7a822bef5c
commit
afc7d1a964
1 changed files with 1 additions and 1 deletions
|
|
@ -363,7 +363,7 @@ public class TorBoxTorrentClient(ILogger<TorBoxTorrentClient> logger, IHttpClien
|
||||||
var innerFolder = Directory.GetDirectories(hashDir)[0];
|
var innerFolder = Directory.GetDirectories(hashDir)[0];
|
||||||
|
|
||||||
var moveDir = extractPath;
|
var moveDir = extractPath;
|
||||||
if (!extractPath.Contains(_torrent.RdName!))
|
if (!extractPath.EndsWith(_torrent.RdName!))
|
||||||
{
|
{
|
||||||
moveDir = hashDir;
|
moveDir = hashDir;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue