New: Added Plex to Notifications, allowing notifications and library updates.

This commit is contained in:
Mark McDowall 2012-02-21 15:10:42 -08:00
commit 6e767eafab
12 changed files with 629 additions and 74 deletions

View file

@ -442,6 +442,51 @@ namespace NzbDrone.Core.Providers.Core
get { return "http://services.nzbdrone.com"; }
}
public virtual Boolean PlexNotifyOnGrab
{
get { return GetValueBoolean("PlexNotifyOnGrab"); }
set { SetValue("PlexNotifyOnGrab", value); }
}
public virtual Boolean PlexNotifyOnDownload
{
get { return GetValueBoolean("PlexNotifyOnDownload"); }
set { SetValue("PlexNotifyOnDownload", value); }
}
public virtual Boolean PlexUpdateLibrary
{
get { return GetValueBoolean("PlexUpdateLibrary"); }
set { SetValue("PlexUpdateLibrary", value); }
}
public virtual string PlexServerHost
{
get { return GetValue("PlexServerHost", "localhost:32400"); }
set { SetValue("PlexServerHost", value); }
}
public virtual string PlexClientHosts
{
get { return GetValue("PlexClientHosts", "localhost:3000"); }
set { SetValue("PlexClientHosts", value); }
}
public virtual string PlexUsername
{
get { return GetValue("PlexUsername"); }
set { SetValue("PlexUsername", value); }
}
public virtual string PlexPassword
{
get { return GetValue("PlexPassword"); }
set { SetValue("PlexPassword", value); }
}
private string GetValue(string key)
{
return GetValue(key, String.Empty);