thrownewCorruptDatabaseException("Database file: {0} is corrupt, restore from backup if available. See: https://wiki.servarr.com/Sonarr_FAQ#I_use_Sonarr_on_a_Mac_and_it_suddenly_stopped_working_What_happened",e,fileName);
thrownewCorruptDatabaseException("Database file: {0} is corrupt, restore from backup if available. See: https://wiki.servarr.com/sonarr/faq#i-use-sonarr-on-a-mac-and-it-suddenly-stopped-working-what-happened",e,fileName);
}
thrownewCorruptDatabaseException("Database file: {0} is corrupt, restore from backup if available. See: https://wiki.servarr.com/Sonarr_FAQ#I_am_getting_an_error_Database_disk_image_is_malformed",e,fileName);
thrownewCorruptDatabaseException("Database file: {0} is corrupt, restore from backup if available. See: https://wiki.servarr.com/sonarr/faq#i-am-getting-an-error-database-disk-image-is-malformed",e,fileName);
returnnewHealthCheck(GetType(),HealthCheckResult.Warning,string.Format("Download client {0} places downloads in the root folder {1}. You should not download to a root folder.",client.Definition.Name,folder.FullPath),"#downloads_in_root_folder");
returnnewHealthCheck(GetType(),HealthCheckResult.Warning,string.Format("Download client {0} places downloads in the root folder {1}. You should not download to a root folder.",client.Definition.Name,folder.FullPath),"#downloads-in-root-folder");
returnnewHealthCheck(GetType(),HealthCheckResult.Error,"All download clients are unavailable due to failures","#download_clients_are_unavailable_due_to_failures");
returnnewHealthCheck(GetType(),HealthCheckResult.Error,"All download clients are unavailable due to failures","#download-clients-are-unavailable-due-to-failures");
}
returnnewHealthCheck(GetType(),HealthCheckResult.Warning,string.Format("Download clients unavailable due to failures: {0}",string.Join(", ",backOffProviders.Select(v=>v.Provider.Definition.Name))),"#download_clients_are_unavailable_due_to_failures");
returnnewHealthCheck(GetType(),HealthCheckResult.Warning,string.Format("Download clients unavailable due to failures: {0}",string.Join(", ",backOffProviders.Select(v=>v.Provider.Definition.Name))),"#download-clients-are-unavailable-due-to-failures");
returnnewHealthCheck(GetType(),HealthCheckResult.Error,"All import lists are unavailable due to failures","#import_lists_are_unavailable_due_to_failures");
returnnewHealthCheck(GetType(),HealthCheckResult.Error,"All import lists are unavailable due to failures","#import-lists-are-unavailable-due-to-failures");
}
returnnewHealthCheck(GetType(),HealthCheckResult.Warning,string.Format("Import lists unavailable due to failures: {0}",string.Join(", ",backOffProviders.Select(v=>v.ImportList.Definition.Name))),"#import_lists_are_unavailable_due_to_failures");
returnnewHealthCheck(GetType(),HealthCheckResult.Warning,string.Format("Import lists unavailable due to failures: {0}",string.Join(", ",backOffProviders.Select(v=>v.ImportList.Definition.Name))),"#import-lists-are-unavailable-due-to-failures");
returnnewHealthCheck(GetType(),HealthCheckResult.Warning,"Enable Completed Download Handling if possible (Multi-Computer unsupported)","#completed_failed_download_handling");
returnnewHealthCheck(GetType(),HealthCheckResult.Warning,"Enable Completed Download Handling if possible (Multi-Computer unsupported)","#completedfailed-download-handling");
returnnewHealthCheck(GetType(),HealthCheckResult.Warning,"Enable Completed Download Handling if possible (Sabnzbd)","#completed/failed_download_handling");
returnnewHealthCheck(GetType(),HealthCheckResult.Warning,"Enable Completed Download Handling if possible (Sabnzbd)","#completedfailed-download-handling");
returnnewHealthCheck(GetType(),HealthCheckResult.Warning,"Enable Completed Download Handling if possible (Nzbget)","#completed/failed_download_handling");
returnnewHealthCheck(GetType(),HealthCheckResult.Warning,"Enable Completed Download Handling if possible (Nzbget)","#completedfailed-download-handling");
}
returnnewHealthCheck(GetType(),HealthCheckResult.Warning,"Enable Completed Download Handling if possible","#completed/failed_download_handling");
returnnewHealthCheck(GetType(),HealthCheckResult.Warning,"Enable Completed Download Handling if possible","#completedfailed-download-handling");
returnnewHealthCheck(GetType(),HealthCheckResult.Error,"All indexers are unavailable due to failures","#indexers_are_unavailable_due_to_failures");
returnnewHealthCheck(GetType(),HealthCheckResult.Error,"All indexers are unavailable due to failures","#indexers-are-unavailable-due-to-failures");
}
returnnewHealthCheck(GetType(),HealthCheckResult.Warning,string.Format("Indexers unavailable due to failures: {0}",string.Join(", ",backOffProviders.Select(v=>v.Provider.Definition.Name))),"#indexers_are_unavailable_due_to_failures");
returnnewHealthCheck(GetType(),HealthCheckResult.Warning,string.Format("Indexers unavailable due to failures: {0}",string.Join(", ",backOffProviders.Select(v=>v.Provider.Definition.Name))),"#indexers-are-unavailable-due-to-failures");
returnnewHealthCheck(GetType(),HealthCheckResult.Error,"Mount containing a series path is mounted read-only: "+string.Join(",",mounts.Select(m=>m.Name)),"#series_mount_ro");
returnnewHealthCheck(GetType(),HealthCheckResult.Error,"Mount containing a series path is mounted read-only: "+string.Join(",",mounts.Select(m=>m.Name)),"#series-mount-ro");
publicoverrideProviderMessageMessage=>newProviderMessage("Testing will execute the script with the EventType set to Test, ensure your script handles this correctly",ProviderMessageType.Warning);