fixed processing files marked as skipped
This commit is contained in:
@@ -368,6 +368,12 @@ public class DelugeService : DownloadService, IDelugeService
|
|||||||
{
|
{
|
||||||
string filePath = string.Join(Path.DirectorySeparatorChar, Path.Combine(download.DownloadLocation, file.Path).Split(['\\', '/']));
|
string filePath = string.Join(Path.DirectorySeparatorChar, Path.Combine(download.DownloadLocation, file.Path).Split(['\\', '/']));
|
||||||
|
|
||||||
|
if (file.Priority <= 0)
|
||||||
|
{
|
||||||
|
_logger.LogDebug("skip | file is not downloaded | {file}", filePath);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
long hardlinkCount = _hardLinkFileService.GetHardLinkCount(filePath, !string.IsNullOrEmpty(_downloadCleanerConfig.UnlinkedIgnoredRootDir));
|
long hardlinkCount = _hardLinkFileService.GetHardLinkCount(filePath, !string.IsNullOrEmpty(_downloadCleanerConfig.UnlinkedIgnoredRootDir));
|
||||||
|
|
||||||
if (hardlinkCount < 0)
|
if (hardlinkCount < 0)
|
||||||
|
|||||||
@@ -408,6 +408,12 @@ public class QBitService : DownloadService, IQBitService
|
|||||||
|
|
||||||
string filePath = string.Join(Path.DirectorySeparatorChar, Path.Combine(download.SavePath, file.Name).Split(['\\', '/']));
|
string filePath = string.Join(Path.DirectorySeparatorChar, Path.Combine(download.SavePath, file.Name).Split(['\\', '/']));
|
||||||
|
|
||||||
|
if (file.Priority is TorrentContentPriority.Skip)
|
||||||
|
{
|
||||||
|
_logger.LogDebug("skip | file is not downloaded | {file}", filePath);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
long hardlinkCount = _hardLinkFileService.GetHardLinkCount(filePath, !string.IsNullOrEmpty(_downloadCleanerConfig.UnlinkedIgnoredRootDir));
|
long hardlinkCount = _hardLinkFileService.GetHardLinkCount(filePath, !string.IsNullOrEmpty(_downloadCleanerConfig.UnlinkedIgnoredRootDir));
|
||||||
|
|
||||||
if (hardlinkCount < 0)
|
if (hardlinkCount < 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user