From a082109045c1976ad2aef83f59ec5c0a5d410188 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Tue, 27 Feb 2018 15:02:17 -0800 Subject: [PATCH] Don't ping for activity if websocket is not connected --- data/interfaces/default/index.html | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/data/interfaces/default/index.html b/data/interfaces/default/index.html index eaff267b..2fd740bc 100644 --- a/data/interfaces/default/index.html +++ b/data/interfaces/default/index.html @@ -1,3 +1,4 @@ +<% from plexpy import PLEX_SERVER_UP %> <%inherit file="base.html"/> <%def name="headIncludes()"> @@ -22,7 +23,15 @@
+ % if PLEX_SERVER_UP:
Checking for activity...
+ % else: +
There was an error communicating with your Plex Server. + % if _session['user_group'] == 'admin': + Check the logs and verify your server connection in the settings. + % endif +
+ % endif
@@ -241,9 +250,9 @@ }); } }); - }; + } -% if 'current_activity' in config['home_sections']: +% if 'current_activity' in config['home_sections'] and PLEX_SERVER_UP: