mirror of
https://github.com/Radarr/Radarr
synced 2026-05-09 08:23:22 +02:00
Fixed: Forced seeding in QBittorrent status treated as complete
This commit is contained in:
parent
9b9597093c
commit
a0b6cdb08e
2 changed files with 2 additions and 0 deletions
|
|
@ -162,6 +162,7 @@ public void paused_item_should_have_required_properties()
|
||||||
[TestCase("uploading")]
|
[TestCase("uploading")]
|
||||||
[TestCase("stalledUP")]
|
[TestCase("stalledUP")]
|
||||||
[TestCase("checkingUP")]
|
[TestCase("checkingUP")]
|
||||||
|
[TestCase("forcedUP")]
|
||||||
public void completed_item_should_have_required_properties(string state)
|
public void completed_item_should_have_required_properties(string state)
|
||||||
{
|
{
|
||||||
var torrent = new QBittorrentTorrent
|
var torrent = new QBittorrentTorrent
|
||||||
|
|
|
||||||
|
|
@ -142,6 +142,7 @@ public override IEnumerable<DownloadClientItem> GetItems()
|
||||||
case "stalledUP": // torrent is being seeded, but no connection were made
|
case "stalledUP": // torrent is being seeded, but no connection were made
|
||||||
case "queuedUP": // queuing is enabled and torrent is queued for upload
|
case "queuedUP": // queuing is enabled and torrent is queued for upload
|
||||||
case "checkingUP": // torrent has finished downloading and is being checked
|
case "checkingUP": // torrent has finished downloading and is being checked
|
||||||
|
case "forcedUP": // torrent has finished downloading and is being forcibly seeded
|
||||||
item.Status = DownloadItemStatus.Completed;
|
item.Status = DownloadItemStatus.Completed;
|
||||||
item.RemainingTime = TimeSpan.Zero; // qBittorrent sends eta=8640000 for completed torrents
|
item.RemainingTime = TimeSpan.Zero; // qBittorrent sends eta=8640000 for completed torrents
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue