From 0d7bbe044d89ea9da653089656c0f4220e5c4323 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sat, 5 May 2018 11:54:13 -0700 Subject: [PATCH] Don't fetch recently added on homepage if Plex Cloud server is sleeping --- data/interfaces/default/index.html | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/data/interfaces/default/index.html b/data/interfaces/default/index.html index d8e3f121..96c1a707 100644 --- a/data/interfaces/default/index.html +++ b/data/interfaces/default/index.html @@ -5,6 +5,7 @@ <%def name="body()"> +<% from plexpy import PLEX_SERVER_UP %>
% for section in config['home_sections']: % if section == 'current_activity': @@ -22,7 +23,6 @@
- <% from plexpy import PLEX_SERVER_UP %> % if PLEX_SERVER_UP:
Checking for activity...
% elif config['pms_is_cloud']: @@ -135,7 +135,17 @@
+ % if PLEX_SERVER_UP:
Looking for new items...
+ % elif config['pms_is_cloud']: +
Plex Cloud server is sleeping.
+ % 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
@@ -222,6 +232,7 @@ <%def name="javascriptIncludes()"> +<% from plexpy import PLEX_SERVER_UP %> @@ -254,7 +265,6 @@ }); } -<% from plexpy import PLEX_SERVER_UP %> % if 'current_activity' in config['home_sections'] and PLEX_SERVER_UP: % endif -% if 'recently_added' in config['home_sections']: +% if 'recently_added' in config['home_sections'] and PLEX_SERVER_UP: