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

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

@ -31,6 +31,11 @@
</label>
@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)
<span class="small">@Html.DescriptionFor(m => m.XbmcHosts)</span>
<span class="small">@Html.ValidationMessageFor(m => m.XbmcHosts)</span>

Loading…
Cancel
Save