New: Old/Obsolete Indexer Check

This commit is contained in:
Qstick
2021-04-23 00:45:42 -04:00
parent 878e61e84b
commit 5c5dfed000
3 changed files with 53 additions and 0 deletions
@@ -18,6 +18,7 @@ namespace NzbDrone.Core.IndexerVersions
{
List<CardigannMetaDefinition> All();
CardigannDefinition GetDefinition(string fileKey);
List<string> GetBlacklist();
}
public class IndexerDefinitionUpdateService : IIndexerDefinitionUpdateService, IExecute<IndexerDefinitionUpdateCommand>
@@ -79,6 +80,11 @@ namespace NzbDrone.Core.IndexerVersions
return definition;
}
public List<string> GetBlacklist()
{
return _defintionBlacklist;
}
private CardigannDefinition GetHttpDefinition(string id)
{
var req = new HttpRequest($"https://indexers.prowlarr.com/master/{DEFINITION_VERSION}/{id}");