Added a new setting for the Netflix option, we can now disable it appearing in the search.

Stopped the Emby newsletter sending out all TV shows every time.
This commit is contained in:
tidusjar 2017-03-18 22:00:52 +00:00
commit 2b27559277
7 changed files with 16 additions and 8 deletions

View file

@ -53,9 +53,9 @@ namespace Ombi.Core.Migration.Migrations
}
public int Version => 22000;
private ISettingsService<CustomizationSettings> Customization { get; }
private ISettingsService<CustomizationSettings> Customization { get; }
private ISettingsService<PlexSettings> PlexSettings { get; }
private IRepository<RecentlyAddedLog> Log { get; }
private IRepository<RecentlyAddedLog> Log { get; }
private IRepository<PlexContent> PlexContent { get; }
private IRepository<PlexEpisodes> PlexEpisodes { get; }
@ -68,6 +68,7 @@ namespace Ombi.Core.Migration.Migrations
AddNewColumns(con);
UpdateSchema(con, Version);
UpdateRecentlyAdded(con);
}
private void UpdateRecentlyAdded(IDbConnection con)
@ -124,10 +125,9 @@ namespace Ombi.Core.Migration.Migrations
{
var settings = Customization.GetSettings();
settings.EnableIssues = true;
settings.EnableIssues = true;
settings.EnableNetflixResults = true;
Customization.SaveSettings(settings);
}
}
}