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:
parent
343c303bc6
commit
cb4d0e2450
@ -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); }
|
||||||
}
|
}
|
||||||
|
@ -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");
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user