mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Started adding Emby, Lots of backend work done. Need a few more services done and login and user management. #435
This commit is contained in:
parent
2ab7aaa4b9
commit
868301f552
43 changed files with 1495 additions and 18 deletions
|
@ -36,23 +36,32 @@ namespace Ombi.Core.Migration.Migrations
|
|||
[Migration(22000, "v2.20.0.0")]
|
||||
public class Version2200 : BaseMigration, IMigration
|
||||
{
|
||||
public Version2200(ISettingsService<CustomizationSettings> custom)
|
||||
public Version2200(ISettingsService<CustomizationSettings> custom, ISettingsService<PlexSettings> ps)
|
||||
{
|
||||
Customization = custom;
|
||||
PlexSettings = ps;
|
||||
}
|
||||
|
||||
public int Version => 22000;
|
||||
private ISettingsService<CustomizationSettings> Customization { get; set; }
|
||||
private ISettingsService<PlexSettings> PlexSettings { get; set; }
|
||||
|
||||
|
||||
private static Logger Logger = LogManager.GetCurrentClassLogger();
|
||||
|
||||
public void Start(IDbConnection con)
|
||||
{
|
||||
UpdatePlexSettings();
|
||||
//UpdateCustomSettings(); Turned off the migration for now until the search has been improved on.
|
||||
//UpdateSchema(con, Version);
|
||||
}
|
||||
|
||||
private void UpdatePlexSettings()
|
||||
{
|
||||
var s = PlexSettings.GetSettings();
|
||||
s.Enable = true;
|
||||
PlexSettings.SaveSettings(s);
|
||||
}
|
||||
private void UpdateCustomSettings()
|
||||
{
|
||||
var settings = Customization.GetSettings();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue