1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 02:22:31 +01:00

fixed blackhole config to be boolean

This commit is contained in:
kay.one 2011-05-08 20:31:01 -07:00
parent 343c303bc6
commit cb4d0e2450
3 changed files with 4 additions and 4 deletions

View File

@ -173,9 +173,9 @@ public virtual String SabTvPriority
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); }
} }

View File

@ -157,7 +157,7 @@ internal void ProcessItem(SyndicationItem feedItem)
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");

View File

@ -392,7 +392,7 @@ public ActionResult SaveDownloads(DownloadSettingsModel data)
_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);