mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 17:13:49 -07:00
New: Added Plex to Notifications, allowing notifications and library updates.
This commit is contained in:
parent
d27f14d7aa
commit
6e767eafab
12 changed files with 629 additions and 74 deletions
|
@ -180,7 +180,15 @@ namespace NzbDrone.Web.Controllers
|
|||
ProwlNotifyOnDownload = _configProvider.ProwlNotifyOnDownload,
|
||||
ProwlApiKeys = _configProvider.ProwlApiKeys,
|
||||
ProwlPriority = _configProvider.ProwlPriority,
|
||||
ProwlPrioritySelectList = GetProwlPrioritySelectList()
|
||||
ProwlPrioritySelectList = GetProwlPrioritySelectList(),
|
||||
PlexEnabled = _externalNotificationProvider.GetSettings(typeof(Plex)).Enable,
|
||||
PlexNotifyOnGrab = _configProvider.PlexNotifyOnGrab,
|
||||
PlexNotifyOnDownload = _configProvider.PlexNotifyOnDownload,
|
||||
PlexUpdateLibrary = _configProvider.PlexUpdateLibrary,
|
||||
PlexServerHost = _configProvider.PlexServerHost,
|
||||
PlexClientHosts = _configProvider.PlexClientHosts,
|
||||
PlexUsername = _configProvider.PlexUsername,
|
||||
PlexPassword = _configProvider.PlexPassword,
|
||||
};
|
||||
|
||||
return View(model);
|
||||
|
@ -530,6 +538,19 @@ namespace NzbDrone.Web.Controllers
|
|||
_configProvider.ProwlApiKeys = data.ProwlApiKeys;
|
||||
_configProvider.ProwlPriority = data.ProwlPriority;
|
||||
|
||||
//Plex
|
||||
var plexSettings = _externalNotificationProvider.GetSettings(typeof(Plex));
|
||||
plexSettings.Enable = data.PlexEnabled;
|
||||
_externalNotificationProvider.SaveSettings(plexSettings);
|
||||
|
||||
_configProvider.PlexNotifyOnGrab = data.PlexNotifyOnGrab;
|
||||
_configProvider.PlexNotifyOnDownload = data.PlexNotifyOnDownload;
|
||||
_configProvider.PlexUpdateLibrary = data.PlexUpdateLibrary;
|
||||
_configProvider.PlexServerHost = data.PlexServerHost;
|
||||
_configProvider.PlexClientHosts = data.PlexClientHosts;
|
||||
_configProvider.PlexUsername = data.PlexUsername;
|
||||
_configProvider.PlexPassword = data.PlexPassword;
|
||||
|
||||
return GetSuccessResult();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue