1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

Fixed: Don't move seeding torrents in Synology Download Station

(cherry picked from commit 3cd33d3f44097b4cb4fb291bca70a0aa53c4b844)
This commit is contained in:
Mark McDowall 2023-05-20 20:56:02 -07:00 committed by Bogdan
parent 90096451e0
commit 99d865ee4a

View File

@ -98,7 +98,7 @@ public override IEnumerable<DownloadClientItem> GetItems()
SeedRatio = GetSeedRatio(torrent), SeedRatio = GetSeedRatio(torrent),
Status = GetStatus(torrent), Status = GetStatus(torrent),
Message = GetMessage(torrent), Message = GetMessage(torrent),
CanMoveFiles = IsCompleted(torrent), CanMoveFiles = IsFinished(torrent),
CanBeRemoved = IsFinished(torrent) CanBeRemoved = IsFinished(torrent)
}; };
@ -218,11 +218,6 @@ protected bool IsFinished(DownloadStationTask torrent)
return torrent.Status == DownloadStationTaskStatus.Finished; 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) protected string GetMessage(DownloadStationTask torrent)
{ {
if (torrent.StatusExtra != null) if (torrent.StatusExtra != null)