fixed blackhole config to be boolean

pull/4/head
kay.one 14 years ago
parent 343c303bc6
commit cb4d0e2450

@ -173,9 +173,9 @@ namespace NzbDrone.Core.Providers.Core
set { SetValue("SabTvPriority", value); }
}
public virtual String UseBlackhole
public virtual Boolean UseBlackhole
{
get { return GetValue("UseBlackhole"); }
get { return GetValueBoolean("UseBlackhole"); }
set { SetValue("UseBlackhole", value); }
}

@ -157,7 +157,7 @@ namespace NzbDrone.Core.Providers.Indexer
parseResult.EpisodeTitle = episodes[0].Title;
var sabTitle = _sabProvider.GetSabTitle(parseResult);
if (Convert.ToBoolean(_configProvider.UseBlackhole))
if (_configProvider.UseBlackhole)
{
var blackholeDir = _configProvider.BlackholeDirectory;
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.SabUsername = data.SabUsername;
_configProvider.SabTvPriority = data.SabTvPriority.ToString();
_configProvider.UseBlackhole = data.UseBlackHole.ToString();
_configProvider.UseBlackhole = data.UseBlackHole;
_configProvider.BlackholeDirectory = data.BlackholeDirectory;
return Content(SETTINGS_SAVED);

Loading…
Cancel
Save