mirror of
https://github.com/Radarr/Radarr.git
synced 2024-08-18 16:29:41 +02:00
Fixed: Qbit torrents treated as failed after error
(cherry picked from commit 7e175bf95ed0a7b624b04a397b953f27043211ae)
This commit is contained in:
parent
f8a82dbb90
commit
af872e4bc5
@ -172,7 +172,7 @@ public void error_item_should_have_required_properties()
|
||||
GivenTorrents(new List<QBittorrentTorrent> { torrent });
|
||||
|
||||
var item = Subject.GetItems().Single();
|
||||
VerifyFailed(item);
|
||||
VerifyWarning(item);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
@ -241,8 +241,8 @@ public override IEnumerable<DownloadClientItem> GetItems()
|
||||
|
||||
switch (torrent.State)
|
||||
{
|
||||
case "error": // some error occurred, applies to paused torrents
|
||||
item.Status = DownloadItemStatus.Failed;
|
||||
case "error": // some error occurred, applies to paused torrents, warning so failed download handling isn't triggered
|
||||
item.Status = DownloadItemStatus.Warning;
|
||||
item.Message = "qBittorrent is reporting an error";
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user