Skip to content

Usenet streaming with a WebDAV server and a SABnzbd-compatible API

C#

Added GetMaxDownloadConnections() to ConfigManager.

nzbdav-dev0dd71e8b03dd
diff --git a/backend/Config/ConfigManager.cs b/backend/Config/ConfigManager.cs
index 44c1c245..c2d6f8e7 100644
--- a/backend/Config/ConfigManager.cs
+++ b/backend/Config/ConfigManager.cs
@@ -139,6 +139,14 @@ public class ConfigManager
);
}
+ public int GetMaxDownloadConnections()
+ {
+ return int.Parse(
+ StringUtil.EmptyToNull(GetConfigValue("usenet.max-download-connections"))
+ ?? Math.Min(GetUsenetProviderConfig().TotalPooledConnections, 15).ToString()
+ );
+ }
+
public bool IsEnforceReadonlyWebdavEnabled()
{
var defaultValue = true;