diff --git a/src/NzbDrone.Core.Test/Download/DownloadClientTests/QBittorrentTests/QBittorrentFixture.cs b/src/NzbDrone.Core.Test/Download/DownloadClientTests/QBittorrentTests/QBittorrentFixture.cs index 2f85b5e2bd..9728443181 100644 --- a/src/NzbDrone.Core.Test/Download/DownloadClientTests/QBittorrentTests/QBittorrentFixture.cs +++ b/src/NzbDrone.Core.Test/Download/DownloadClientTests/QBittorrentTests/QBittorrentFixture.cs @@ -633,7 +633,7 @@ protected virtual QBittorrentTorrent GivenCompletedTorrent( .Returns(new QBittorrentTorrentProperties { Hash = "HASH", - SeedingTime = seedingTime + SeedingTime = seedingTime * 60 }); return torrent; diff --git a/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs b/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs index e084cd26c3..18368118f8 100644 --- a/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs +++ b/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs @@ -626,11 +626,11 @@ protected bool HasReachedSeedingTimeLimit(QBittorrentTorrent torrent, QBittorren if (torrent.SeedingTimeLimit >= 0) { - seedingTimeLimit = torrent.SeedingTimeLimit; + seedingTimeLimit = torrent.SeedingTimeLimit * 60; } else if (torrent.SeedingTimeLimit == -2 && config.MaxSeedingTimeEnabled) { - seedingTimeLimit = config.MaxSeedingTime; + seedingTimeLimit = config.MaxSeedingTime * 60; } else { diff --git a/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrentTorrent.cs b/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrentTorrent.cs index dbfceb0c3f..92e6c7e021 100644 --- a/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrentTorrent.cs +++ b/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrentTorrent.cs @@ -33,7 +33,7 @@ public class QBittorrentTorrent public float RatioLimit { get; set; } = -2; [JsonProperty(PropertyName = "seeding_time")] - public long? SeedingTime { get; set; } // Torrent seeding time (not provided by the list api) + public long? SeedingTime { get; set; } // Torrent seeding time (in seconds, not provided by the list api) [JsonProperty(PropertyName = "seeding_time_limit")] // Per torrent seeding time limit (-2 = use global, -1 = unlimited) public long SeedingTimeLimit { get; set; } = -2; @@ -47,7 +47,7 @@ public class QBittorrentTorrentProperties public string SavePath { get; set; } [JsonProperty(PropertyName = "seeding_time")] - public long SeedingTime { get; set; } // Torrent seeding time + public long SeedingTime { get; set; } // Torrent seeding time (in seconds) } public class QBittorrentTorrentFile