mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Fixed: Use QBittorrent category savepath for healthcheck
[common]
This commit is contained in:
parent
efef2f3bb6
commit
1058b03f46
1 changed files with 20 additions and 0 deletions
|
@ -269,10 +269,30 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent
|
||||||
|
|
||||||
public override DownloadClientInfo GetStatus()
|
public override DownloadClientInfo GetStatus()
|
||||||
{
|
{
|
||||||
|
var version = Proxy.GetApiVersion(Settings);
|
||||||
var config = Proxy.GetConfig(Settings);
|
var config = Proxy.GetConfig(Settings);
|
||||||
|
|
||||||
var destDir = new OsPath(config.SavePath);
|
var destDir = new OsPath(config.SavePath);
|
||||||
|
|
||||||
|
if (Settings.MusicCategory.IsNotNullOrWhiteSpace() && version >= Version.Parse("2.0"))
|
||||||
|
{
|
||||||
|
var label = Proxy.GetLabels(Settings)[Settings.MusicCategory];
|
||||||
|
|
||||||
|
if (label.SavePath.IsNotNullOrWhiteSpace())
|
||||||
|
{
|
||||||
|
var labelDir = new OsPath(label.SavePath);
|
||||||
|
|
||||||
|
if (labelDir.IsRooted)
|
||||||
|
{
|
||||||
|
destDir = labelDir;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
destDir = destDir + labelDir;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return new DownloadClientInfo
|
return new DownloadClientInfo
|
||||||
{
|
{
|
||||||
IsLocalhost = Settings.Host == "127.0.0.1" || Settings.Host == "localhost",
|
IsLocalhost = Settings.Host == "127.0.0.1" || Settings.Host == "localhost",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue