mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-25 07:12:40 +00:00
Fixed: Root Folder Downloads check giving errors when RuTorrent is used (#2266)
* Fixed: Root Folder Downloads check giving errors when RuTorrent is used * removed uneccesary if statement in RemotePathMappingCheck
This commit is contained in:
parent
bc6261efb8
commit
2573e96d7a
2 changed files with 31 additions and 29 deletions
|
@ -5,6 +5,11 @@ namespace NzbDrone.Core.Download
|
||||||
{
|
{
|
||||||
public class DownloadClientInfo
|
public class DownloadClientInfo
|
||||||
{
|
{
|
||||||
|
public DownloadClientInfo()
|
||||||
|
{
|
||||||
|
OutputRootFolders = new List<OsPath>();
|
||||||
|
}
|
||||||
|
|
||||||
public bool IsLocalhost { get; set; }
|
public bool IsLocalhost { get; set; }
|
||||||
public List<OsPath> OutputRootFolders { get; set; }
|
public List<OsPath> OutputRootFolders { get; set; }
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,8 +58,6 @@ public override HealthCheck Check()
|
||||||
{
|
{
|
||||||
var status = client.GetStatus();
|
var status = client.GetStatus();
|
||||||
var folders = status.OutputRootFolders;
|
var folders = status.OutputRootFolders;
|
||||||
if (folders != null)
|
|
||||||
{
|
|
||||||
foreach (var folder in folders)
|
foreach (var folder in folders)
|
||||||
{
|
{
|
||||||
if (!folder.IsValid)
|
if (!folder.IsValid)
|
||||||
|
@ -95,7 +93,6 @@ public override HealthCheck Check()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
catch (DownloadClientException ex)
|
catch (DownloadClientException ex)
|
||||||
{
|
{
|
||||||
_logger.Debug(ex, "Unable to communicate with {0}", client.Definition.Name);
|
_logger.Debug(ex, "Unable to communicate with {0}", client.Definition.Name);
|
||||||
|
|
Loading…
Reference in a new issue