diff --git a/NzbDrone.Core/Providers/Core/ConfigProvider.cs b/NzbDrone.Core/Providers/Core/ConfigProvider.cs index 4761db871..c369e87f6 100644 --- a/NzbDrone.Core/Providers/Core/ConfigProvider.cs +++ b/NzbDrone.Core/Providers/Core/ConfigProvider.cs @@ -173,9 +173,9 @@ public virtual String SabTvPriority set { SetValue("SabTvPriority", value); } } - public virtual String UseBlackhole + public virtual Boolean UseBlackhole { - get { return GetValue("UseBlackhole"); } + get { return GetValueBoolean("UseBlackhole"); } set { SetValue("UseBlackhole", value); } } diff --git a/NzbDrone.Core/Providers/Indexer/IndexerProviderBase.cs b/NzbDrone.Core/Providers/Indexer/IndexerProviderBase.cs index 12762290d..0e5d1881e 100644 --- a/NzbDrone.Core/Providers/Indexer/IndexerProviderBase.cs +++ b/NzbDrone.Core/Providers/Indexer/IndexerProviderBase.cs @@ -157,7 +157,7 @@ internal void ProcessItem(SyndicationItem feedItem) 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"); diff --git a/NzbDrone.Web/Controllers/SettingsController.cs b/NzbDrone.Web/Controllers/SettingsController.cs index 5924ea7fd..d7a551f04 100644 --- a/NzbDrone.Web/Controllers/SettingsController.cs +++ b/NzbDrone.Web/Controllers/SettingsController.cs @@ -392,7 +392,7 @@ public ActionResult SaveDownloads(DownloadSettingsModel data) _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);