mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-19 17:32:38 +01:00
Add file-count for Transmission RPC
(cherry picked from commit 23c741fd001582fa363c2723eff9facd3091618b) Closes #9973
This commit is contained in:
parent
cd2c7dc7fb
commit
3a6d603a9e
@ -178,7 +178,8 @@ private TransmissionResponse GetTorrentStatus(IEnumerable<string> hashStrings, T
|
||||
"seedRatioMode",
|
||||
"seedIdleLimit",
|
||||
"seedIdleMode",
|
||||
"fileCount"
|
||||
"fileCount",
|
||||
"file-count"
|
||||
};
|
||||
|
||||
var arguments = new Dictionary<string, object>();
|
||||
|
@ -1,3 +1,5 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace NzbDrone.Core.Download.Clients.Transmission
|
||||
{
|
||||
public class TransmissionTorrent
|
||||
@ -20,6 +22,12 @@ public class TransmissionTorrent
|
||||
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
Block a user