mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-05 20:42:19 -07:00
Add file-count for Transmission RPC
(cherry picked from commit 23c741fd001582fa363c2723eff9facd3091618b)
This commit is contained in:
parent
25a80aa29d
commit
1a40839202
2 changed files with 9 additions and 1 deletions
|
@ -221,6 +221,7 @@ namespace NzbDrone.Core.Download.Clients.Transmission
|
|||
"seedIdleLimit",
|
||||
"seedIdleMode",
|
||||
"fileCount",
|
||||
"file-count",
|
||||
"labels"
|
||||
};
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace NzbDrone.Core.Download.Clients.Transmission
|
||||
{
|
||||
|
@ -24,6 +25,12 @@ namespace NzbDrone.Core.Download.Clients.Transmission
|
|||
public int SeedRatioMode { get; set; }
|
||||
public long SeedIdleLimit { get; set; }
|
||||
public int SeedIdleMode { get; set; }
|
||||
public int FileCount { get; set; }
|
||||
public int FileCount => TransmissionFileCount ?? VuzeFileCount ?? 0;
|
||||
|
||||
[JsonProperty(PropertyName = "file-count")]
|
||||
public int? TransmissionFileCount { get; set; }
|
||||
|
||||
[JsonProperty(PropertyName = "fileCount")]
|
||||
public int? VuzeFileCount { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue