mirror of
https://github.com/Jackett/Jackett
synced 2024-12-30 19:58:39 +00:00
Fix OMDB key handling (#1581)
This commit is contained in:
parent
7eb57d8e9a
commit
bcc1e5ff6c
2 changed files with 2 additions and 1 deletions
|
@ -378,6 +378,7 @@ namespace Jackett.Controllers
|
|||
if (omdbApiKey != Engine.Server.Config.OmdbApiKey)
|
||||
{
|
||||
Engine.Server.Config.OmdbApiKey = omdbApiKey;
|
||||
Engine.Server.SaveConfig();
|
||||
// HACK
|
||||
indexerService.InitAggregateIndexer();
|
||||
}
|
||||
|
|
|
@ -142,7 +142,7 @@ namespace Jackett.Services
|
|||
var omdbApiKey = Engine.Server.Config.OmdbApiKey;
|
||||
IFallbackStrategyProvider fallbackStrategyProvider = null;
|
||||
IResultFilterProvider resultFilterProvider = null;
|
||||
if (omdbApiKey != null)
|
||||
if (!omdbApiKey.IsNullOrEmptyOrWhitespace())
|
||||
{
|
||||
var imdbResolver = new OmdbResolver(webClient, omdbApiKey.ToNonNull());
|
||||
fallbackStrategyProvider = new ImdbFallbackStrategyProvider(imdbResolver);
|
||||
|
|
Loading…
Reference in a new issue