mirror of
https://github.com/Sonarr/Sonarr
synced 2025-02-23 14:41:27 +00:00
Add file-count for Transmission RPC
This commit is contained in:
parent
8ddf46113b
commit
23c741fd00
2 changed files with 12 additions and 3 deletions
|
@ -178,7 +178,8 @@ namespace NzbDrone.Core.Download.Clients.Transmission
|
||||||
"seedRatioMode",
|
"seedRatioMode",
|
||||||
"seedIdleLimit",
|
"seedIdleLimit",
|
||||||
"seedIdleMode",
|
"seedIdleMode",
|
||||||
"fileCount"
|
"fileCount",
|
||||||
|
"file-count"
|
||||||
};
|
};
|
||||||
|
|
||||||
var arguments = new Dictionary<string, object>();
|
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
|
public class TransmissionTorrent
|
||||||
{
|
{
|
||||||
|
@ -20,6 +22,12 @@
|
||||||
public int SeedRatioMode { get; set; }
|
public int SeedRatioMode { get; set; }
|
||||||
public long SeedIdleLimit { get; set; }
|
public long SeedIdleLimit { get; set; }
|
||||||
public int SeedIdleMode { 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 a new issue