From 8bec6c91c972ffcbb376ad93348e9c0dd72429a0 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sat, 20 May 2023 20:56:02 -0700 Subject: [PATCH] Fixed: Don't move seeding torrents in Synology Download Station (cherry picked from commit 3cd33d3f44097b4cb4fb291bca70a0aa53c4b844) Closes #2521 --- .../Clients/DownloadStation/TorrentDownloadStation.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/NzbDrone.Core/Download/Clients/DownloadStation/TorrentDownloadStation.cs b/src/NzbDrone.Core/Download/Clients/DownloadStation/TorrentDownloadStation.cs index 4a1016d08..3747ec4e7 100644 --- a/src/NzbDrone.Core/Download/Clients/DownloadStation/TorrentDownloadStation.cs +++ b/src/NzbDrone.Core/Download/Clients/DownloadStation/TorrentDownloadStation.cs @@ -96,7 +96,7 @@ public override IEnumerable GetItems() SeedRatio = GetSeedRatio(torrent), Status = GetStatus(torrent), Message = GetMessage(torrent), - CanMoveFiles = IsCompleted(torrent), + CanMoveFiles = IsFinished(torrent), CanBeRemoved = IsFinished(torrent) }; @@ -213,11 +213,6 @@ protected bool IsFinished(DownloadStationTask torrent) return torrent.Status == DownloadStationTaskStatus.Finished; } - protected bool IsCompleted(DownloadStationTask torrent) - { - return torrent.Status == DownloadStationTaskStatus.Seeding || IsFinished(torrent) || (torrent.Status == DownloadStationTaskStatus.Waiting && torrent.Size != 0 && GetRemainingSize(torrent) <= 0); - } - protected string GetMessage(DownloadStationTask torrent) { if (torrent.StatusExtra != null)