mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-23 14:30:49 +00:00
Fixed: Regression causing nzbToMedia imports to be copied instead of moved.
This commit is contained in:
parent
fa006d85fd
commit
de7f68570e
2 changed files with 18 additions and 0 deletions
|
@ -195,6 +195,22 @@ public void downloading_item_should_have_required_properties()
|
||||||
VerifyDownloading(result);
|
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]
|
[Test]
|
||||||
public void completed_download_should_have_required_properties()
|
public void completed_download_should_have_required_properties()
|
||||||
{
|
{
|
||||||
|
|
|
@ -83,6 +83,8 @@ private IEnumerable<DownloadClientItem> GetQueue()
|
||||||
queueItem.TotalSize = totalSize;
|
queueItem.TotalSize = totalSize;
|
||||||
queueItem.Category = item.Category;
|
queueItem.Category = item.Category;
|
||||||
queueItem.DownloadClient = Definition.Name;
|
queueItem.DownloadClient = Definition.Name;
|
||||||
|
queueItem.CanMoveFiles = true;
|
||||||
|
queueItem.CanBeRemoved = true;
|
||||||
|
|
||||||
if (globalStatus.DownloadPaused || remainingSize == pausedSize && remainingSize != 0)
|
if (globalStatus.DownloadPaused || remainingSize == pausedSize && remainingSize != 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue