mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-29 11:56:01 +01:00
Fixed: Use Flaresolverr if setup when adding new Indexers
This commit is contained in:
parent
8d39a7f315
commit
049b4ba4d8
1 changed files with 7 additions and 1 deletions
|
|
@ -8,6 +8,7 @@
|
|||
using NzbDrone.Common.Http.Dispatchers;
|
||||
using NzbDrone.Common.TPL;
|
||||
using NzbDrone.Core.IndexerProxies;
|
||||
using NzbDrone.Core.IndexerProxies.FlareSolverr;
|
||||
using NzbDrone.Core.ThingiProvider;
|
||||
|
||||
namespace NzbDrone.Core.Indexers
|
||||
|
|
@ -53,7 +54,7 @@ public HttpResponse ExecuteProxied(HttpRequest request, ProviderDefinition defin
|
|||
private IIndexerProxy GetProxy(ProviderDefinition definition)
|
||||
{
|
||||
//Skip DB call if no tags on the indexers
|
||||
if (definition.Tags.Count == 0)
|
||||
if (definition.Tags.Count == 0 && definition.Id > 0)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
|
@ -70,6 +71,11 @@ private IIndexerProxy GetProxy(ProviderDefinition definition)
|
|||
}
|
||||
}
|
||||
|
||||
if (selectedProxy == null && definition.Id == 0)
|
||||
{
|
||||
selectedProxy = proxies.FirstOrDefault(p => p is FlareSolverr);
|
||||
}
|
||||
|
||||
return selectedProxy;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue