New: Xbmc setting to update the library even when a video is playing.

pull/2/head
Mark McDowall 13 years ago
parent 109904ccc8
commit ba3b034a3c

@ -152,6 +152,7 @@ namespace NzbDrone.Web.Controllers
XbmcHosts = _configProvider.XbmcHosts, XbmcHosts = _configProvider.XbmcHosts,
XbmcUsername = _configProvider.XbmcUsername, XbmcUsername = _configProvider.XbmcUsername,
XbmcPassword = _configProvider.XbmcPassword, XbmcPassword = _configProvider.XbmcPassword,
XbmcUpdateWhenPlaying = _configProvider.XbmcUpdateWhenPlaying,
SmtpEnabled = _externalNotificationProvider.GetSettings(typeof(Smtp)).Enable, SmtpEnabled = _externalNotificationProvider.GetSettings(typeof(Smtp)).Enable,
SmtpNotifyOnGrab = _configProvider.SmtpNotifyOnGrab, SmtpNotifyOnGrab = _configProvider.SmtpNotifyOnGrab,
SmtpNotifyOnDownload = _configProvider.SmtpNotifyOnGrab, SmtpNotifyOnDownload = _configProvider.SmtpNotifyOnGrab,
@ -502,6 +503,7 @@ namespace NzbDrone.Web.Controllers
_configProvider.XbmcHosts = data.XbmcHosts; _configProvider.XbmcHosts = data.XbmcHosts;
_configProvider.XbmcUsername = data.XbmcUsername; _configProvider.XbmcUsername = data.XbmcUsername;
_configProvider.XbmcPassword = data.XbmcPassword; _configProvider.XbmcPassword = data.XbmcPassword;
_configProvider.XbmcUpdateWhenPlaying = data.XbmcUpdateWhenPlaying;
//SMTP //SMTP
var smtpSettings = _externalNotificationProvider.GetSettings(typeof(Smtp)); var smtpSettings = _externalNotificationProvider.GetSettings(typeof(Smtp));

@ -48,6 +48,10 @@ namespace NzbDrone.Web.Models
[DisplayFormat(ConvertEmptyStringToNull = false)] [DisplayFormat(ConvertEmptyStringToNull = false)]
public string XbmcPassword { get; set; } public string XbmcPassword { get; set; }
[DisplayName("Always Update")]
[Description("Update Library even when a video is playing?")]
public bool XbmcUpdateWhenPlaying { get; set; }
//SMTP //SMTP
[DisplayName("Enabled")] [DisplayName("Enabled")]
[Description("Enable Email notifications?")] [Description("Enable Email notifications?")]

@ -30,6 +30,11 @@
<span class="small">@Html.DescriptionFor(m => m.XbmcCleanLibrary)</span> <span class="small">@Html.DescriptionFor(m => m.XbmcCleanLibrary)</span>
</label> </label>
@Html.CheckBoxFor(m => m.XbmcCleanLibrary, new { @class = "inputClass checkClass" }) @Html.CheckBoxFor(m => m.XbmcCleanLibrary, new { @class = "inputClass checkClass" })
<label class="labelClass">@Html.LabelFor(m => m.XbmcUpdateWhenPlaying)
<span class="small">@Html.DescriptionFor(m => m.XbmcUpdateWhenPlaying)</span>
</label>
@Html.CheckBoxFor(m => m.XbmcUpdateWhenPlaying, new { @class = "inputClass checkClass" })
<label class="labelClass">@Html.LabelFor(m => m.XbmcHosts) <label class="labelClass">@Html.LabelFor(m => m.XbmcHosts)
<span class="small">@Html.DescriptionFor(m => m.XbmcHosts)</span> <span class="small">@Html.DescriptionFor(m => m.XbmcHosts)</span>

Loading…
Cancel
Save