mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
@@ -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
|
||||
|
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 @@ 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
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user