mirror of https://github.com/Radarr/Radarr
fixed blackhole config to be boolean
This commit is contained in:
parent
343c303bc6
commit
cb4d0e2450
|
@ -173,9 +173,9 @@ namespace NzbDrone.Core.Providers.Core
|
||||||
set { SetValue("SabTvPriority", value); }
|
set { SetValue("SabTvPriority", value); }
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual String UseBlackhole
|
public virtual Boolean UseBlackhole
|
||||||
{
|
{
|
||||||
get { return GetValue("UseBlackhole"); }
|
get { return GetValueBoolean("UseBlackhole"); }
|
||||||
|
|
||||||
set { SetValue("UseBlackhole", value); }
|
set { SetValue("UseBlackhole", value); }
|
||||||
}
|
}
|
||||||
|
|
|
@ -157,7 +157,7 @@ namespace NzbDrone.Core.Providers.Indexer
|
||||||
parseResult.EpisodeTitle = episodes[0].Title;
|
parseResult.EpisodeTitle = episodes[0].Title;
|
||||||
var sabTitle = _sabProvider.GetSabTitle(parseResult);
|
var sabTitle = _sabProvider.GetSabTitle(parseResult);
|
||||||
|
|
||||||
if (Convert.ToBoolean(_configProvider.UseBlackhole))
|
if (_configProvider.UseBlackhole)
|
||||||
{
|
{
|
||||||
var blackholeDir = _configProvider.BlackholeDirectory;
|
var blackholeDir = _configProvider.BlackholeDirectory;
|
||||||
var folder = !String.IsNullOrEmpty(blackholeDir) ? blackholeDir : Path.Combine(CentralDispatch.AppPath, "App_Data");
|
var folder = !String.IsNullOrEmpty(blackholeDir) ? blackholeDir : Path.Combine(CentralDispatch.AppPath, "App_Data");
|
||||||
|
|
|
@ -392,7 +392,7 @@ namespace NzbDrone.Web.Controllers
|
||||||
_configProvider.SabTvCategory = data.SabTvCategory;
|
_configProvider.SabTvCategory = data.SabTvCategory;
|
||||||
_configProvider.SabUsername = data.SabUsername;
|
_configProvider.SabUsername = data.SabUsername;
|
||||||
_configProvider.SabTvPriority = data.SabTvPriority.ToString();
|
_configProvider.SabTvPriority = data.SabTvPriority.ToString();
|
||||||
_configProvider.UseBlackhole = data.UseBlackHole.ToString();
|
_configProvider.UseBlackhole = data.UseBlackHole;
|
||||||
_configProvider.BlackholeDirectory = data.BlackholeDirectory;
|
_configProvider.BlackholeDirectory = data.BlackholeDirectory;
|
||||||
|
|
||||||
return Content(SETTINGS_SAVED);
|
return Content(SETTINGS_SAVED);
|
||||||
|
|
Loading…
Reference in New Issue