mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
Fixed: Don't move seeding torrents in Synology Download Station
(cherry picked from commit 3cd33d3f44097b4cb4fb291bca70a0aa53c4b844) Closes #2521
This commit is contained in:
@@ -96,7 +96,7 @@ namespace NzbDrone.Core.Download.Clients.DownloadStation
|
|||||||
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)
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -213,11 +213,6 @@ namespace NzbDrone.Core.Download.Clients.DownloadStation
|
|||||||
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user