Add file-count for Transmission RPC

This commit is contained in:
Mika 2024-05-05 03:53:47 +02:00 committed by GitHub
parent 8ddf46113b
commit 23c741fd00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 3 deletions

View File

@ -178,7 +178,8 @@ namespace NzbDrone.Core.Download.Clients.Transmission
"seedRatioMode",
"seedIdleLimit",
"seedIdleMode",
"fileCount"
"fileCount",
"file-count"
};
var arguments = new Dictionary<string, object>();

View File

@ -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; }
}
}