mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Prevent adding a root folder that is the same as drone factory
This commit is contained in:
parent
e3916d5fc8
commit
485f05d4b9
6 changed files with 33 additions and 11 deletions
|
@ -8,6 +8,11 @@ using NzbDrone.Core.Download.Clients.Sabnzbd;
|
|||
|
||||
namespace NzbDrone.Core.Configuration
|
||||
{
|
||||
public enum ConfigKey
|
||||
{
|
||||
DownloadedEpisodesFolder
|
||||
}
|
||||
|
||||
public class ConfigService : IConfigService
|
||||
{
|
||||
private readonly IConfigRepository _repository;
|
||||
|
@ -118,9 +123,9 @@ namespace NzbDrone.Core.Configuration
|
|||
|
||||
public String DownloadedEpisodesFolder
|
||||
{
|
||||
get { return GetValue("DownloadedEpisodesFolder"); }
|
||||
get { return GetValue(ConfigKey.DownloadedEpisodesFolder.ToString()); }
|
||||
|
||||
set { SetValue("DownloadedEpisodesFolder", value); }
|
||||
set { SetValue(ConfigKey.DownloadedEpisodesFolder.ToString(), value); }
|
||||
}
|
||||
|
||||
public bool UseSeasonFolder
|
||||
|
@ -136,7 +141,6 @@ namespace NzbDrone.Core.Configuration
|
|||
set { SetValue("SeasonFolderFormat", value); }
|
||||
}
|
||||
|
||||
|
||||
public bool AutoUnmonitorPreviouslyDownloadedEpisodes
|
||||
{
|
||||
get { return GetValueBoolean("AutoUnmonitorPreviouslyDownloadedEpisodes"); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue