Add file-count for Transmission RPC
This commit is contained in:
parent
8ddf46113b
commit
23c741fd00
|
@ -178,7 +178,8 @@ namespace NzbDrone.Core.Download.Clients.Transmission
|
|||
"seedRatioMode",
|
||||
"seedIdleLimit",
|
||||
"seedIdleMode",
|
||||
"fileCount"
|
||||
"fileCount",
|
||||
"file-count"
|
||||
};
|
||||
|
||||
var arguments = new Dictionary<string, object>();
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
namespace NzbDrone.Core.Download.Clients.Transmission
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace NzbDrone.Core.Download.Clients.Transmission
|
||||
{
|
||||
public class TransmissionTorrent
|
||||
{
|
||||
|
@ -20,6 +22,12 @@
|
|||
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…
Reference in New Issue