mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-20 20:00:48 +02:00
parent
7e3dcb338c
commit
16f0486da2
5 changed files with 15 additions and 21 deletions
|
|
@ -90,12 +90,6 @@ public bool LogIndexerResponse
|
|||
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 @@ public bool EnableColorImpairedMode
|
|||
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 @@ public interface IConfigService
|
|||
|
||||
bool IsDefined(string key);
|
||||
|
||||
//Download Client
|
||||
string DownloadClientWorkingFolders { get; set; }
|
||||
|
||||
//History
|
||||
int HistoryCleanupDays { get; set; }
|
||||
|
||||
|
|
@ -25,7 +22,6 @@ public interface IConfigService
|
|||
string TimeFormat { get; set; }
|
||||
bool ShowRelativeDates { get; set; }
|
||||
bool EnableColorImpairedMode { get; set; }
|
||||
int MovieInfoLanguage { get; set; }
|
||||
int UILanguage { get; set; }
|
||||
|
||||
//Internal
|
||||
|
|
|
|||
15
src/NzbDrone.Core/Datastore/Migration/016_cleanup_config.cs
Normal file
15
src/NzbDrone.Core/Datastore/Migration/016_cleanup_config.cs
Normal file
|
|
@ -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 @@ public static DownloadClientConfigResource ToResource(IConfigService model)
|
|||
{
|
||||
return new DownloadClientConfigResource
|
||||
{
|
||||
DownloadClientWorkingFolders = model.DownloadClientWorkingFolders
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ public class UiConfigResource : RestResource
|
|||
public bool ShowRelativeDates { get; set; }
|
||||
|
||||
public bool EnableColorImpairedMode { get; set; }
|
||||
public int MovieInfoLanguage { get; set; }
|
||||
public int UILanguage { get; set; }
|
||||
}
|
||||
|
||||
|
|
@ -35,7 +34,6 @@ public static UiConfigResource ToResource(IConfigService model)
|
|||
ShowRelativeDates = model.ShowRelativeDates,
|
||||
|
||||
EnableColorImpairedMode = model.EnableColorImpairedMode,
|
||||
MovieInfoLanguage = model.MovieInfoLanguage,
|
||||
UILanguage = model.UILanguage
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue