Add file-count for Transmission RPC

pull/6778/head
Mika 2 weeks ago committed by GitHub
parent 8ddf46113b
commit 23c741fd00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save