Add settings to toggle repeat update notifications

This commit is contained in:
JonnyWong16 2021-05-16 16:10:22 -07:00
parent 0659e60720
commit b8d0bbe930
2 changed files with 21 additions and 0 deletions

View file

@ -228,6 +228,15 @@
<p class="help-block">Update Tautulli automatically if an update is available.</p>
</div>
% endif
<div class="checkbox advanced-setting">
<label>
<input type="checkbox" name="notify_plexpy_update_repeat" id="notify_plexpy_update_repeat" value="1" ${config['notify_plexpy_update_repeat']}> Repeat Tautulli Update Notifications
</label>
<p class="help-block">
Enable to allow Tautulli to send repeat update notifications everytime it checks for updates.
Disable to only send one notifications for each Tautulli version.
</p>
</div>
<div class="form-group advanced-setting">
<label for="git_token">GitHub API Token</label>
<div class="row">
@ -891,6 +900,15 @@
The interval (in hours) Tautulli will check for a new Plex Media Server update. Minimum 1, default 24.
</p>
</div>
<div class="checkbox advanced-setting">
<label>
<input type="checkbox" name="notify_server_update_repeat" id="notify_server_update_repeat" value="1" ${config['notify_server_update_repeat']}> Repeat Plex Server Update Notifications
</label>
<p class="help-block">
Enable to allow Tautulli to send repeat Plex server update notifications everytime it checks for updates.
Disable to only send one notifications for each Plex server version.
</p>
</div>
</div>
<div class="form-group advanced-setting">

View file

@ -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",