mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-01-01 13:26:56 +01:00
Cardigann changes
This commit is contained in:
parent
2006ce42d0
commit
b2b354a7a3
2 changed files with 3 additions and 3 deletions
|
|
@ -79,8 +79,7 @@ public override IEnumerable<IndexerDefinition> GetDefaultDefinitions()
|
|||
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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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 @@ public override IndexerResource ToResource(IndexerDefinition definition)
|
|||
{
|
||||
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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue