From b8d0bbe93048b53ad4cdb9ab835ef87fd94887cd Mon Sep 17 00:00:00 2001
From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
Date: Sun, 16 May 2021 16:10:22 -0700
Subject: [PATCH] Add settings to toggle repeat update notifications
---
data/interfaces/default/settings.html | 18 ++++++++++++++++++
plexpy/webserve.py | 3 +++
2 files changed, 21 insertions(+)
diff --git a/data/interfaces/default/settings.html b/data/interfaces/default/settings.html
index 9d2c5a88..4057bd5f 100644
--- a/data/interfaces/default/settings.html
+++ b/data/interfaces/default/settings.html
@@ -228,6 +228,15 @@
Update Tautulli automatically if an update is available.
% endif
+
+
+ Repeat Tautulli Update Notifications
+
+
+ Enable to allow Tautulli to send repeat update notifications everytime it checks for updates.
+ Disable to only send one notifications for each Tautulli version.
+
+
diff --git a/plexpy/webserve.py b/plexpy/webserve.py
index dba05ee8..7b34ce4c 100644
--- a/plexpy/webserve.py
+++ b/plexpy/webserve.py
@@ -3203,6 +3203,8 @@ class WebInterface(object):
"notify_continued_session_threshold": plexpy.CONFIG.NOTIFY_CONTINUED_SESSION_THRESHOLD,
"notify_new_device_initial_only": checked(plexpy.CONFIG.NOTIFY_NEW_DEVICE_INITIAL_ONLY),
"notify_server_connection_threshold": plexpy.CONFIG.NOTIFY_SERVER_CONNECTION_THRESHOLD,
+ "notify_server_update_repeat": checked(plexpy.CONFIG.NOTIFY_SERVER_UPDATE_REPEAT),
+ "notify_plexpy_update_repeat": checked(plexpy.CONFIG.NOTIFY_PLEXPY_UPDATE_REPEAT),
"home_sections": json.dumps(plexpy.CONFIG.HOME_SECTIONS),
"home_stats_cards": json.dumps(plexpy.CONFIG.HOME_STATS_CARDS),
"home_library_cards": json.dumps(plexpy.CONFIG.HOME_LIBRARY_CARDS),
@@ -3267,6 +3269,7 @@ class WebInterface(object):
"notify_consecutive", "notify_recently_added_upgrade",
"notify_group_recently_added_grandparent", "notify_group_recently_added_parent",
"notify_new_device_initial_only",
+ "notify_server_update_repeat", "notify_plexpy_update_repeat",
"monitor_pms_updates", "get_file_sizes", "log_blacklist", "http_hash_password",
"allow_guest_access", "cache_images", "http_proxy", "http_basic_auth", "notify_concurrent_by_ip",
"history_table_activity", "plexpy_auto_update",