Usenet streaming with a WebDAV server and a SABnzbd-compatible API
C#
Updated safeguard threshold for maintenance task (#94)
nzbdav-dev3d6145b7d46f
diff --git a/backend/Tasks/RemoveUnlinkedFilesTask.cs b/backend/Tasks/RemoveUnlinkedFilesTask.csindex 36a556e8..b434e1b6 100644--- a/backend/Tasks/RemoveUnlinkedFilesTask.cs+++ b/backend/Tasks/RemoveUnlinkedFilesTask.cs@@ -42,10 +42,10 @@ public class RemoveUnlinkedFilesTask(// get linked file pathsReport(dryRun + $"Found {allDavItems.Count} webdav files.\nEnumerating all symlinked files...");var linkedIds = GetLinkedIds();- if (linkedIds.Count < 100)+ if (linkedIds.Count < 5){Report($"Aborted: " +- $"There are less than one hundred symlinked files found in your library. " ++ $"There are less than five symlinked files found in your library. " +$"Cancelling operation to prevent accidental bulk deletion.");return;}