|
|
|
@ -78,6 +78,14 @@ namespace NzbDrone.Core.Applications.LazyLibrarian
|
|
|
|
|
var lazyLibrarianIndexer = BuildLazyLibrarianIndexer(indexer, indexer.Protocol);
|
|
|
|
|
|
|
|
|
|
var remoteIndexer = _lazyLibrarianV1Proxy.AddIndexer(lazyLibrarianIndexer, Settings);
|
|
|
|
|
|
|
|
|
|
if (remoteIndexer == null)
|
|
|
|
|
{
|
|
|
|
|
_logger.Debug("Failed to add {0} [{1}]", indexer.Name, indexer.Id);
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
_appIndexerMapService.Insert(new AppIndexerMap { AppId = Definition.Id, IndexerId = indexer.Id, RemoteIndexerName = $"{remoteIndexer.Type},{remoteIndexer.Name}" });
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|