1
0
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:
Mika 2024-05-05 03:53:47 +02:00 committed by Bogdan
parent cd2c7dc7fb
commit 3a6d603a9e
2 changed files with 11 additions and 2 deletions

View File

@ -178,7 +178,8 @@ private TransmissionResponse GetTorrentStatus(IEnumerable<string> hashStrings, T
"seedRatioMode",
"seedIdleLimit",
"seedIdleMode",
"fileCount"
"fileCount",
"file-count"
};
var arguments = new Dictionary<string, object>();

View File

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