|
|
@ -361,6 +361,7 @@ namespace NzbDrone.Core.Download.Clients.Sabnzbd
|
|
|
|
if (!Settings.TvCategoryLocalPath.IsNullOrWhiteSpace())
|
|
|
|
if (!Settings.TvCategoryLocalPath.IsNullOrWhiteSpace())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
failures.AddIfNotNull(TestFolder(Settings.TvCategoryLocalPath, "TvCategoryLocalPath"));
|
|
|
|
failures.AddIfNotNull(TestFolder(Settings.TvCategoryLocalPath, "TvCategoryLocalPath"));
|
|
|
|
|
|
|
|
failures.AddIfNotNull(TestCategoryLocalPath());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -460,5 +461,15 @@ namespace NzbDrone.Core.Download.Clients.Sabnzbd
|
|
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private ValidationFailure TestCategoryLocalPath()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (Settings.Host == "127.0.0.1" || Settings.Host == "localhost")
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return new ValidationFailure("TvCategoryLocalPath", "Do not set when SABnzbd is running on the same system as NzbDrone");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|