From 4a5d2f850248fb25891f3d3c9cbbf145a4bfb482 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Fri, 29 Apr 2016 07:07:02 -0700 Subject: [PATCH] Fix regression PMS update notifications broken --- plexpy/notification_handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py index fc07da5a..8ba8e017 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -934,6 +934,7 @@ def build_server_notify_text(notify_action=None, agent_id=None): update_status = {} if notify_action == 'pmsupdate': + pms_connect = pmsconnect.PmsConnect() update_status = pms_connect.get_update_staus() if server_times: @@ -1108,4 +1109,4 @@ def strip_tag(data, agent_id=None): else: p = re.compile(r'<.*?>', re.IGNORECASE | re.DOTALL) - return p.sub('', data) \ No newline at end of file + return p.sub('', data)