returnnewValidationFailure("TvCategory","Category does not exist");
if(category.Dir.EndsWith("*"))
{
returnnewValidationFailure(String.Empty,String.Format("Remove * from Sabnzbd <a class=\"no-router\" target=\"_blank\" href=\"http://{0}:{1}/sabnzbd/config/categories/\">'{2}' category</a> Folder/Path so job folders will be created",Settings.Host,Settings.Port,Settings.TvCategory));
}
}
else
{
if(!Settings.TvCategory.IsNullOrWhiteSpace())
{
returnnewValidationFailure("TvCategory",String.Format("<a class=\"no-router\" target=\"_blank\" href=\"http://{0}:{1}/sabnzbd/config/categories/\">Category</a> does not exist",Settings.Host,Settings.Port));
returnnewValidationFailure(String.Empty,String.Format("Disable <a class=\"no-router\" target=\"_blank\" href=\"http://{0}:{1}/sabnzbd/config/sorting/\">TV Sorting</a> for the '{2}' category",Settings.Host,Settings.Port,Settings.TvCategory));
// With Sabnzbd we cannot check the category settings.
// With Sabnzbd we can check if the category should be changed.
if(downloadClientOutputInDroneFactory)
{
returnnewHealthCheck(GetType(),HealthCheckResult.Warning,"Enable Completed Download Handling if possible (Sabnzbd - Conflicting Category)","Migrating-to-Completed-Download-Handling#sabnzbd-conflicting-download-client-category");
}
returnnewHealthCheck(GetType(),HealthCheckResult.Warning,"Enable Completed Download Handling if possible (Sabnzbd)","Migrating-to-Completed-Download-Handling#sabnzbd-enable-completed-download-handling");