mirror of
https://github.com/Readarr/Readarr
synced 2025-12-20 07:13:17 +01:00
Fixed: Use QBittorrent category savepath for healthcheck
[common]
This commit is contained in:
parent
a5635c3396
commit
cedc026710
1 changed files with 20 additions and 0 deletions
|
|
@ -264,10 +264,30 @@ public override DownloadClientItem GetImportItem(DownloadClientItem item, Downlo
|
|||
|
||||
public override DownloadClientInfo GetStatus()
|
||||
{
|
||||
var version = Proxy.GetApiVersion(Settings);
|
||||
var config = Proxy.GetConfig(Settings);
|
||||
|
||||
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
|
||||
{
|
||||
IsLocalhost = Settings.Host == "127.0.0.1" || Settings.Host == "localhost",
|
||||
|
|
|
|||
Loading…
Reference in a new issue