mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
New: Backend changes for new UI
This commit is contained in:
@@ -4,7 +4,6 @@ using System.Globalization;
|
||||
using System.Linq;
|
||||
using NLog;
|
||||
using NzbDrone.Common.EnsureThat;
|
||||
using NzbDrone.Common.EnvironmentInfo;
|
||||
using NzbDrone.Core.Configuration.Events;
|
||||
using NzbDrone.Core.MediaFiles;
|
||||
using NzbDrone.Core.Messaging.Events;
|
||||
@@ -75,17 +74,10 @@ namespace NzbDrone.Core.Configuration
|
||||
return _repository.Get(key.ToLower()) != null;
|
||||
}
|
||||
|
||||
public string DownloadedMoviesFolder
|
||||
public bool AutoUnmonitorPreviouslyDownloadedMovies
|
||||
{
|
||||
get { return GetValue(ConfigKey.DownloadedMoviesFolder.ToString()); }
|
||||
|
||||
set { SetValue(ConfigKey.DownloadedMoviesFolder.ToString(), value); }
|
||||
}
|
||||
|
||||
public bool AutoUnmonitorPreviouslyDownloadedEpisodes
|
||||
{
|
||||
get { return GetValueBoolean("AutoUnmonitorPreviouslyDownloadedEpisodes"); }
|
||||
set { SetValue("AutoUnmonitorPreviouslyDownloadedEpisodes", value); }
|
||||
get { return GetValueBoolean("AutoUnmonitorPreviouslyDownloadedMovies"); }
|
||||
set { SetValue("AutoUnmonitorPreviouslyDownloadedMovies", value); }
|
||||
}
|
||||
|
||||
public int Retention
|
||||
@@ -247,11 +239,18 @@ namespace NzbDrone.Core.Configuration
|
||||
set { SetValue("RemoveFailedDownloads", value); }
|
||||
}
|
||||
|
||||
public bool CreateEmptySeriesFolders
|
||||
public bool CreateEmptyMovieFolders
|
||||
{
|
||||
get { return GetValueBoolean("CreateEmptySeriesFolders", false); }
|
||||
get { return GetValueBoolean("CreateEmptyMovieFolders", false); }
|
||||
|
||||
set { SetValue("CreateEmptySeriesFolders", value); }
|
||||
set { SetValue("CreateEmptyMovieFolders", value); }
|
||||
}
|
||||
|
||||
public bool DeleteEmptyFolders
|
||||
{
|
||||
get { return GetValueBoolean("DeleteEmptyFolders", false); }
|
||||
|
||||
set { SetValue("DeleteEmptyFolders", value); }
|
||||
}
|
||||
|
||||
public FileDateType FileDate
|
||||
@@ -267,13 +266,6 @@ namespace NzbDrone.Core.Configuration
|
||||
set { SetValue("DownloadClientWorkingFolders", value); }
|
||||
}
|
||||
|
||||
public int DownloadedMoviesScanInterval
|
||||
{
|
||||
get { return GetValueInt("DownloadedMoviesScanInterval", 0); }
|
||||
|
||||
set { SetValue("DownloadedMoviesScanInterval", value); }
|
||||
}
|
||||
|
||||
public int CheckForFinishedDownloadInterval
|
||||
{
|
||||
get { return GetValueInt("CheckForFinishedDownloadInterval", 1); }
|
||||
@@ -337,6 +329,13 @@ namespace NzbDrone.Core.Configuration
|
||||
set { SetValue("PathsDefaultStatic", value); }
|
||||
}
|
||||
|
||||
public RescanAfterRefreshType RescanAfterRefresh
|
||||
{
|
||||
get { return GetValueEnum("RescanAfterRefresh", RescanAfterRefreshType.Always); }
|
||||
|
||||
set { SetValue("RescanAfterRefresh", value); }
|
||||
}
|
||||
|
||||
public bool SetPermissionsLinux
|
||||
{
|
||||
get { return GetValueBoolean("SetPermissionsLinux", false); }
|
||||
@@ -452,6 +451,12 @@ namespace NzbDrone.Core.Configuration
|
||||
|
||||
public bool ProxyBypassLocalAddresses => GetValueBoolean("ProxyBypassLocalAddresses", true);
|
||||
|
||||
public string BackupFolder => GetValue("BackupFolder", "Backups");
|
||||
|
||||
public int BackupInterval => GetValueInt("BackupInterval", 7);
|
||||
|
||||
public int BackupRetention => GetValueInt("BackupRetention", 28);
|
||||
|
||||
private string GetValue(string key)
|
||||
{
|
||||
return GetValue(key, string.Empty);
|
||||
|
Reference in New Issue
Block a user