mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Ninject is now forced to use proper constructor.
This commit is contained in:
parent
5293d0e204
commit
add780b431
34 changed files with 88 additions and 53 deletions
|
@ -13,9 +13,6 @@ namespace NzbDrone.Core.Providers
|
|||
{
|
||||
public class AutoConfigureProvider
|
||||
{
|
||||
public AutoConfigureProvider()
|
||||
{
|
||||
}
|
||||
|
||||
public SabnzbdInfoModel AutoConfigureSab()
|
||||
{
|
||||
|
@ -29,8 +26,7 @@ namespace NzbDrone.Core.Providers
|
|||
var info =
|
||||
ipProperties.GetActiveTcpListeners().Select(
|
||||
p =>
|
||||
new ConnectionInfoModel
|
||||
{Address = p.Address.ToString().Replace("0.0.0.0", "127.0.0.1"), Port = p.Port}).Distinct().
|
||||
new ConnectionInfoModel { Address = p.Address.ToString().Replace("0.0.0.0", "127.0.0.1"), Port = p.Port }).Distinct().
|
||||
ToList();
|
||||
|
||||
info.RemoveAll(i => i.Port == 135);
|
||||
|
@ -51,7 +47,8 @@ namespace NzbDrone.Core.Providers
|
|||
{
|
||||
var apiKey = GetApiKey(connection.Address, connection.Port);
|
||||
if (!String.IsNullOrEmpty(apiKey))
|
||||
return new SabnzbdInfoModel {
|
||||
return new SabnzbdInfoModel
|
||||
{
|
||||
Host = connection.Address,
|
||||
Port = connection.Port,
|
||||
ApiKey = apiKey
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue