Cardigann changes

This commit is contained in:
Qstick
2020-10-23 16:17:20 -04:00
parent 2006ce42d0
commit b2b354a7a3
2 changed files with 3 additions and 3 deletions

View File

@@ -79,8 +79,7 @@ namespace NzbDrone.Core.Indexers
foreach (var provider in _providers)
{
var definitions = provider.DefaultDefinitions
.Where(v => v.Name != null && v.Name != provider.GetType().Name)
.Take(10);
.Where(v => v.Name != null && v.Name != provider.GetType().Name);
foreach (IndexerDefinition definition in definitions)
{

View File

@@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using NzbDrone.Core.Annotations;
using NzbDrone.Core.Indexers;
@@ -36,7 +37,7 @@ namespace Prowlarr.Api.V1.Indexers
{
Console.WriteLine("mapping cardigann def");
var extraFields = definition.ExtraFields.Select((x, i) => MapField(x, i)).ToList();
var extraFields = definition.ExtraFields?.Select((x, i) => MapField(x, i)).ToList() ?? new List<Field>();
resource.Fields.AddRange(extraFields);