mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
moved update url from db to nzbdrone.config
This commit is contained in:
parent
87bbf2dc6a
commit
2dfebd2147
8 changed files with 14 additions and 74 deletions
|
@ -22,6 +22,7 @@ namespace NzbDrone.Core.Configuration
|
|||
string Username { get; }
|
||||
string Password { get; }
|
||||
string LogLevel { get; }
|
||||
string UpdateUrl { get; }
|
||||
}
|
||||
|
||||
public class ConfigFileProvider : IConfigFileProvider
|
||||
|
@ -95,6 +96,11 @@ namespace NzbDrone.Core.Configuration
|
|||
get { return GetValueBoolean("AuthenticationEnabled", false); }
|
||||
}
|
||||
|
||||
public string UpdateUrl
|
||||
{
|
||||
get { return GetValue("UpdateUrl", "http://update.nzbdrone.com/vnext/"); }
|
||||
}
|
||||
|
||||
public string Username
|
||||
{
|
||||
get { return GetValue("Username", ""); }
|
||||
|
|
|
@ -5,7 +5,6 @@ using NLog;
|
|||
using NzbDrone.Core.Download;
|
||||
using NzbDrone.Core.Download.Clients.Nzbget;
|
||||
using NzbDrone.Core.Download.Clients.Sabnzbd;
|
||||
using NzbDrone.Core.Instrumentation;
|
||||
|
||||
namespace NzbDrone.Core.Configuration
|
||||
{
|
||||
|
@ -137,11 +136,6 @@ namespace NzbDrone.Core.Configuration
|
|||
set { SetValue("SeasonFolderFormat", value); }
|
||||
}
|
||||
|
||||
public string UpdateUrl
|
||||
{
|
||||
get { return GetValue("UpdateUrl", "http://update.nzbdrone.com/vnext/"); }
|
||||
set { SetValue("UpdateUrl", value); }
|
||||
}
|
||||
|
||||
public bool AutoUnmonitorPreviouslyDownloadedEpisodes
|
||||
{
|
||||
|
@ -155,11 +149,6 @@ namespace NzbDrone.Core.Configuration
|
|||
set { SetValue("Retention", value); }
|
||||
}
|
||||
|
||||
public Guid UGuid
|
||||
{
|
||||
get { return Guid.Parse(GetValue("UGuid", Guid.NewGuid().ToString(), persist: true)); }
|
||||
}
|
||||
|
||||
public DownloadClientType DownloadClient
|
||||
{
|
||||
get { return GetValueEnum("DownloadClient", DownloadClientType.Sabnzbd); }
|
||||
|
@ -178,13 +167,6 @@ namespace NzbDrone.Core.Configuration
|
|||
get { return "http://services.nzbdrone.com"; }
|
||||
}
|
||||
|
||||
public Boolean MetadataUseBanners
|
||||
{
|
||||
get { return GetValueBoolean("MetadataUseBanners"); }
|
||||
|
||||
set { SetValue("MetadataUseBanners", value); }
|
||||
}
|
||||
|
||||
public string PneumaticFolder
|
||||
{
|
||||
get { return GetValue("PneumaticFolder", String.Empty); }
|
||||
|
@ -197,19 +179,6 @@ namespace NzbDrone.Core.Configuration
|
|||
set { SetValue("RecycleBin", value); }
|
||||
}
|
||||
|
||||
public int RssSyncInterval
|
||||
{
|
||||
get { return GetValueInt("RssSyncInterval", 15); }
|
||||
set { SetValue("RssSyncInterval", value); }
|
||||
}
|
||||
|
||||
public Boolean IgnoreArticlesWhenSortingSeries
|
||||
{
|
||||
get { return GetValueBoolean("IgnoreArticlesWhenSortingSeries", true); }
|
||||
|
||||
set { SetValue("IgnoreArticlesWhenSortingSeries", value); }
|
||||
}
|
||||
|
||||
public String NzbgetUsername
|
||||
{
|
||||
get { return GetValue("NzbgetUsername", "nzbget"); }
|
||||
|
@ -245,13 +214,6 @@ namespace NzbDrone.Core.Configuration
|
|||
set { SetValue("NzbgetTvCategory", value); }
|
||||
}
|
||||
|
||||
public Int32 NzbgetPriority
|
||||
{
|
||||
get { return GetValueInt("NzbgetPriority", 0); }
|
||||
|
||||
set { SetValue("NzbgetPriority", value); }
|
||||
}
|
||||
|
||||
public PriorityType NzbgetRecentTvPriority
|
||||
{
|
||||
get { return GetValueEnum("NzbgetRecentTvPriority", PriorityType.Normal); }
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using NzbDrone.Common.Messaging;
|
||||
using NzbDrone.Common.Messaging;
|
||||
|
||||
namespace NzbDrone.Core.Configuration.Events
|
||||
{
|
||||
|
|
|
@ -3,7 +3,6 @@ using System.Collections.Generic;
|
|||
using NzbDrone.Core.Download;
|
||||
using NzbDrone.Core.Download.Clients.Nzbget;
|
||||
using NzbDrone.Core.Download.Clients.Sabnzbd;
|
||||
using NzbDrone.Core.Instrumentation;
|
||||
|
||||
namespace NzbDrone.Core.Configuration
|
||||
{
|
||||
|
@ -11,7 +10,6 @@ namespace NzbDrone.Core.Configuration
|
|||
{
|
||||
IEnumerable<Config> All();
|
||||
Dictionary<String, Object> AllWithDefaults();
|
||||
string UpdateUrl { get; set; }
|
||||
String SabHost { get; set; }
|
||||
int SabPort { get; set; }
|
||||
String SabApiKey { get; set; }
|
||||
|
@ -25,26 +23,19 @@ namespace NzbDrone.Core.Configuration
|
|||
string SeasonFolderFormat { get; set; }
|
||||
bool AutoUnmonitorPreviouslyDownloadedEpisodes { get; set; }
|
||||
int Retention { get; set; }
|
||||
Guid UGuid { get; }
|
||||
DownloadClientType DownloadClient { get; set; }
|
||||
string BlackholeFolder { get; set; }
|
||||
string ServiceRootUrl { get; }
|
||||
Boolean MetadataUseBanners { get; set; }
|
||||
string PneumaticFolder { get; set; }
|
||||
string RecycleBin { get; set; }
|
||||
int RssSyncInterval { get; set; }
|
||||
Boolean IgnoreArticlesWhenSortingSeries { get; set; }
|
||||
String NzbgetUsername { get; set; }
|
||||
String NzbgetPassword { get; set; }
|
||||
String NzbgetHost { get; set; }
|
||||
Int32 NzbgetPort { get; set; }
|
||||
String NzbgetTvCategory { get; set; }
|
||||
Int32 NzbgetPriority { get; set; }
|
||||
PriorityType NzbgetRecentTvPriority { get; set; }
|
||||
PriorityType NzbgetOlderTvPriority { get; set; }
|
||||
string ReleaseRestrictions { get; set; }
|
||||
string GetValue(string key, object defaultValue, bool persist = false);
|
||||
void SetValue(string key, string value);
|
||||
void SaveValues(Dictionary<string, object> configValues);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue