mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
XbmcProvider updated to include new Json API methods.
EventClient is used for sending CleanLibrary and Notifications (With NzbDrone Logo - Internal Resource). Support for Dharma's HTTP Server (Deprecated), since Dharma doesn't support Json as well.
This commit is contained in:
parent
5bbc9a6f59
commit
348ff5a386
26 changed files with 1312 additions and 158 deletions
|
@ -120,13 +120,6 @@ namespace NzbDrone.Core.Providers.Core
|
|||
set { SetValue("DownloadPropers", value); }
|
||||
}
|
||||
|
||||
public virtual Int32 Retention
|
||||
{
|
||||
get { return GetValueInt("Retention"); }
|
||||
|
||||
set { SetValue("Retention", value); }
|
||||
}
|
||||
|
||||
public virtual String SabHost
|
||||
{
|
||||
get { return GetValue("SabHost", "localhost"); }
|
||||
|
@ -259,6 +252,59 @@ namespace NzbDrone.Core.Providers.Core
|
|||
set { SetValue("DefaultQualityProfile", value); }
|
||||
}
|
||||
|
||||
public virtual Boolean XbmcEnabled
|
||||
{
|
||||
get { return GetValueBoolean("XbmcEnabled"); }
|
||||
|
||||
set { SetValue("XbmcEnabled", value); }
|
||||
}
|
||||
|
||||
public virtual Boolean XbmcNotifyOnGrab
|
||||
{
|
||||
get { return GetValueBoolean("XbmcNotifyOnGrab"); }
|
||||
|
||||
set { SetValue("XbmcNotifyOnGrab", value); }
|
||||
}
|
||||
|
||||
public virtual Boolean XbmcNotifyOnDownload
|
||||
{
|
||||
get { return GetValueBoolean("XbmcNotifyOnDownload"); }
|
||||
|
||||
set { SetValue("XbmcNotifyOnDownload", value); }
|
||||
}
|
||||
|
||||
public virtual Boolean XbmcUpdateLibrary
|
||||
{
|
||||
get { return GetValueBoolean("XbmcUpdateLibrary"); }
|
||||
|
||||
set { SetValue("XbmcUpdateLibrary", value); }
|
||||
}
|
||||
|
||||
public virtual Boolean XbmcCleanLibrary
|
||||
{
|
||||
get { return GetValueBoolean("XbmcCleanLibrary"); }
|
||||
|
||||
set { SetValue("XbmcCleanLibrary", value); }
|
||||
}
|
||||
|
||||
public virtual string XbmcHosts
|
||||
{
|
||||
get { return GetValue("XbmcHosts", "localhost:8080"); }
|
||||
set { SetValue("XbmcHosts", value); }
|
||||
}
|
||||
|
||||
public virtual string XbmcUsername
|
||||
{
|
||||
get { return GetValue("XbmcUsername", "xbmc"); }
|
||||
set { SetValue("XbmcUsername", value); }
|
||||
}
|
||||
|
||||
public virtual string XbmcPassword
|
||||
{
|
||||
get { return GetValue("XbmcPassword", String.Empty); }
|
||||
set { SetValue("XbmcPassword", value); }
|
||||
}
|
||||
|
||||
private string GetValue(string key)
|
||||
{
|
||||
return GetValue(key, String.Empty);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue