From de7f68570ea4d915d99b773300869eb9bc4a2828 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Wed, 12 Apr 2017 18:08:31 +0200 Subject: [PATCH] Fixed: Regression causing nzbToMedia imports to be copied instead of moved. --- .../NzbgetTests/NzbgetFixture.cs | 16 ++++++++++++++++ .../Download/Clients/Nzbget/Nzbget.cs | 2 ++ 2 files changed, 18 insertions(+) diff --git a/src/NzbDrone.Core.Test/Download/DownloadClientTests/NzbgetTests/NzbgetFixture.cs b/src/NzbDrone.Core.Test/Download/DownloadClientTests/NzbgetTests/NzbgetFixture.cs index a79236740..35903402c 100644 --- a/src/NzbDrone.Core.Test/Download/DownloadClientTests/NzbgetTests/NzbgetFixture.cs +++ b/src/NzbDrone.Core.Test/Download/DownloadClientTests/NzbgetTests/NzbgetFixture.cs @@ -195,6 +195,22 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.NzbgetTests VerifyDownloading(result); } + [Test] + public void post_processing_item_should_have_required_properties() + { + _queued.ActiveDownloads = 1; + + GivenQueue(_queued); + GivenHistory(null); + + _queued.RemainingSizeLo = 0; + + var result = Subject.GetItems().Single(); + + result.CanBeRemoved.Should().BeTrue(); + result.CanMoveFiles.Should().BeTrue(); + } + [Test] public void completed_download_should_have_required_properties() { diff --git a/src/NzbDrone.Core/Download/Clients/Nzbget/Nzbget.cs b/src/NzbDrone.Core/Download/Clients/Nzbget/Nzbget.cs index 197f59c23..ed9cd5cd6 100644 --- a/src/NzbDrone.Core/Download/Clients/Nzbget/Nzbget.cs +++ b/src/NzbDrone.Core/Download/Clients/Nzbget/Nzbget.cs @@ -83,6 +83,8 @@ namespace NzbDrone.Core.Download.Clients.Nzbget queueItem.TotalSize = totalSize; queueItem.Category = item.Category; queueItem.DownloadClient = Definition.Name; + queueItem.CanMoveFiles = true; + queueItem.CanBeRemoved = true; if (globalStatus.DownloadPaused || remainingSize == pausedSize && remainingSize != 0) {