mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-22 22:34:53 -04:00
Indexer and Search page work
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using FluentValidation.Results;
|
||||
@@ -42,8 +43,13 @@ namespace NzbDrone.Core.Indexers
|
||||
base.SetProviderCharacteristics(provider, definition);
|
||||
|
||||
definition.Protocol = provider.Protocol;
|
||||
definition.Privacy = provider.Privacy;
|
||||
definition.SupportsRss = provider.SupportsRss;
|
||||
definition.SupportsSearch = provider.SupportsSearch;
|
||||
definition.SupportsBooks = provider.SupportsBooks;
|
||||
definition.SupportsMovies = provider.SupportsMovies;
|
||||
definition.SupportsMusic = provider.SupportsMusic;
|
||||
definition.SupportsTv = provider.SupportsTv;
|
||||
}
|
||||
|
||||
public List<IIndexer> RssEnabled(bool filterBlockedIndexers = true)
|
||||
@@ -110,5 +116,12 @@ namespace NzbDrone.Core.Indexers
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
public override IndexerDefinition Create(IndexerDefinition definition)
|
||||
{
|
||||
definition.Added = DateTime.UtcNow;
|
||||
|
||||
return base.Create(definition);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user