1
0
Fork 0
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:
chibidev 2017-07-21 17:56:29 +02:00
parent 7eb57d8e9a
commit bcc1e5ff6c
2 changed files with 2 additions and 1 deletions

View file

@ -378,6 +378,7 @@ namespace Jackett.Controllers
if (omdbApiKey != Engine.Server.Config.OmdbApiKey)
{
Engine.Server.Config.OmdbApiKey = omdbApiKey;
Engine.Server.SaveConfig();
// HACK
indexerService.InitAggregateIndexer();
}

View file

@ -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);