Cleanup Config Values

Closes #894
pull/962/head
Qstick 2 years ago
parent 7e3dcb338c
commit 16f0486da2

@ -90,12 +90,6 @@ namespace NzbDrone.Core.Configuration
set { SetValue("LogIndexerResponse", value); }
}
public string DownloadClientWorkingFolders
{
get { return GetValue("DownloadClientWorkingFolders", "_UNPACK_|_FAILED_"); }
set { SetValue("DownloadClientWorkingFolders", value); }
}
public int FirstDayOfWeek
{
get { return GetValueInt("FirstDayOfWeek", (int)CultureInfo.CurrentCulture.DateTimeFormat.FirstDayOfWeek); }
@ -145,13 +139,6 @@ namespace NzbDrone.Core.Configuration
set { SetValue("EnableColorImpairedMode", value); }
}
public int MovieInfoLanguage
{
get { return GetValueInt("MovieInfoLanguage", (int)Language.English); }
set { SetValue("MovieInfoLanguage", value); }
}
public int UILanguage
{
get { return GetValueInt("UILanguage", (int)Language.English); }

@ -10,9 +10,6 @@ namespace NzbDrone.Core.Configuration
bool IsDefined(string key);
//Download Client
string DownloadClientWorkingFolders { get; set; }
//History
int HistoryCleanupDays { get; set; }
@ -25,7 +22,6 @@ namespace NzbDrone.Core.Configuration
string TimeFormat { get; set; }
bool ShowRelativeDates { get; set; }
bool EnableColorImpairedMode { get; set; }
int MovieInfoLanguage { get; set; }
int UILanguage { get; set; }
//Internal

@ -0,0 +1,15 @@
using FluentMigrator;
using NzbDrone.Core.Datastore.Migration.Framework;
namespace NzbDrone.Core.Datastore.Migration
{
[Migration(016)]
public class cleanup_config : NzbDroneMigrationBase
{
protected override void MainDbUpgrade()
{
Delete.FromTable("Config").Row(new { Key = "movieinfolanguage" });
Delete.FromTable("Config").Row(new { Key = "downloadclientworkingfolders" });
}
}
}

@ -5,7 +5,6 @@ namespace Prowlarr.Api.V1.Config
{
public class DownloadClientConfigResource : RestResource
{
public string DownloadClientWorkingFolders { get; set; }
}
public static class DownloadClientConfigResourceMapper
@ -14,7 +13,6 @@ namespace Prowlarr.Api.V1.Config
{
return new DownloadClientConfigResource
{
DownloadClientWorkingFolders = model.DownloadClientWorkingFolders
};
}
}

@ -16,7 +16,6 @@ namespace Prowlarr.Api.V1.Config
public bool ShowRelativeDates { get; set; }
public bool EnableColorImpairedMode { get; set; }
public int MovieInfoLanguage { get; set; }
public int UILanguage { get; set; }
}
@ -35,7 +34,6 @@ namespace Prowlarr.Api.V1.Config
ShowRelativeDates = model.ShowRelativeDates,
EnableColorImpairedMode = model.EnableColorImpairedMode,
MovieInfoLanguage = model.MovieInfoLanguage,
UILanguage = model.UILanguage
};
}

Loading…
Cancel
Save