fixed missing download location

This commit is contained in:
Flaminel
2025-03-26 02:05:05 +02:00
parent 4b38a6fee1
commit ac086fcd47
3 changed files with 8 additions and 2 deletions
@@ -360,7 +360,9 @@ public class DelugeService : DownloadService, IDelugeService
ProcessFiles(contents?.Contents, (_, file) =>
{
long hardlinkCount = _hardLinkFileService.GetHardLinkCount(file.Path, !string.IsNullOrEmpty(_downloadCleanerConfig.UnlinkedIgnoredRootDir));
string filePath = string.Join(Path.DirectorySeparatorChar, Path.Combine(download.DownloadLocation, file.Path).Split(['\\', '/']));
long hardlinkCount = _hardLinkFileService.GetHardLinkCount(filePath, !string.IsNullOrEmpty(_downloadCleanerConfig.UnlinkedIgnoredRootDir));
if (hardlinkCount < 0)
{