From 4911cc76a3968c11e132a77cda8715219714b2c8 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Fri, 15 Jul 2016 09:44:06 -0700 Subject: [PATCH] Substitute {update_version} in fallback notification --- plexpy/notification_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py index 7d86b4df..fe9759fd 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -1249,7 +1249,7 @@ def build_server_notify_text(notify_action=None, agent_id=None): elif notify_action == 'pmsupdate': # Default body text - body_text = 'An update is available for the Plex Media Server (version {update_version}).' + body_text = 'An update is available for the Plex Media Server (version %s).' % available_params['update_version'] if on_pmsupdate_subject and on_pmsupdate_body: try: @@ -1300,4 +1300,4 @@ def strip_tag(data, agent_id=None): else: whitelist = {} - return bleach.clean(data, tags=whitelist.keys(), attributes=whitelist, strip=True) \ No newline at end of file + return bleach.clean(data, tags=whitelist.keys(), attributes=whitelist, strip=True)