Fix Transmission uses 'file-count' while vuze uses 'fileCount'

This commit is contained in:
mika 2024-04-22 16:26:12 +02:00
parent b81c3ee4a8
commit 6407550447
2 changed files with 11 additions and 2 deletions

View File

@ -179,6 +179,7 @@ namespace NzbDrone.Core.Download.Clients.Transmission
"seedIdleLimit",
"seedIdleMode",
"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; }
}
}