Add advanced setting for remote access ping threshold

This commit is contained in:
JonnyWong16 2016-10-08 21:49:52 -07:00 committed by JonnyWong16
parent eb3c189ab6
commit b8106186fb
2 changed files with 3 additions and 2 deletions

View file

@ -301,14 +301,14 @@ def check_server_access():
% str(ext_ping_count))
# Reset external ping counter
else:
if ext_ping_count >= 3:
if ext_ping_count >= plexpy.CONFIG.REMOTE_ACCESS_PING_THRESHOLD:
logger.info(u"PlexPy Monitor :: Plex remote access is back up.")
plexpy.NOTIFY_QUEUE.put({'notify_action': 'on_extup'})
ext_ping_count = 0
if ext_ping_count == 3:
if ext_ping_count == plexpy.CONFIG.REMOTE_ACCESS_PING_THRESHOLD:
plexpy.NOTIFY_QUEUE.put({'notify_action': 'on_extdown'})