diff --git a/data/interfaces/default/settings.html b/data/interfaces/default/settings.html index 6fc65627..43375644 100644 --- a/data/interfaces/default/settings.html +++ b/data/interfaces/default/settings.html @@ -483,7 +483,7 @@ available_notification_agents = sorted(notifiers.available_notification_agents()
-

Notification Tuning

+

Current Activity Notifications

@@ -502,12 +502,27 @@ available_notification_agents = sorted(notifiers.available_notification_agents()

Disable to prevent consecutive notifications (i.e. both watched & stopped notifications).

+ +
+

Recently Added Notifications

+
+

Enable to only get one notification for recently added Episodes or Tracks. Movies are unaffected.

+
+ +
+
+ +
+ +
+

Set the delay for recently added notifications to allow metadata to be processes. Minimum 60 seconds.

+

Custom Notification Messages

diff --git a/plexpy/config.py b/plexpy/config.py index dc274e00..4415f2cd 100644 --- a/plexpy/config.py +++ b/plexpy/config.py @@ -140,6 +140,7 @@ _CONFIG_DEFINITIONS = { 'NMA_ON_CREATED': (int, 'NMA', 0), 'NOTIFY_CONSECUTIVE': (int, 'Monitoring', 1), 'NOTIFY_RECENTLY_ADDED_GRANDPARENT': (int, 'Monitoring', 0), + 'NOTIFY_RECENTLY_ADDED_DELAY': (int, 'Monitoring', 60), 'NOTIFY_WATCHED_PERCENT': (int, 'Monitoring', 85), 'NOTIFY_ON_START_SUBJECT_TEXT': (str, 'Monitoring', 'PlexPy ({server_name})'), 'NOTIFY_ON_START_BODY_TEXT': (str, 'Monitoring', '{user} ({player}) started playing {title}.'), diff --git a/plexpy/webserve.py b/plexpy/webserve.py index 7baa4cbf..50c23876 100644 --- a/plexpy/webserve.py +++ b/plexpy/webserve.py @@ -446,6 +446,7 @@ class WebInterface(object): "pms_is_remote": checked(plexpy.CONFIG.PMS_IS_REMOTE), "notify_consecutive": checked(plexpy.CONFIG.NOTIFY_CONSECUTIVE), "notify_recently_added_grandparent": checked(plexpy.CONFIG.NOTIFY_RECENTLY_ADDED_GRANDPARENT), + "notify_recently_added_delay": plexpy.CONFIG.NOTIFY_RECENTLY_ADDED_DELAY, "notify_watched_percent": plexpy.CONFIG.NOTIFY_WATCHED_PERCENT, "notify_on_start_subject_text": plexpy.CONFIG.NOTIFY_ON_START_SUBJECT_TEXT, "notify_on_start_body_text": plexpy.CONFIG.NOTIFY_ON_START_BODY_TEXT,