mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 15:56:07 -07:00
Check cloud status on startup before connecting websocket
This commit is contained in:
parent
a5d2467bfe
commit
a53afe05a2
3 changed files with 13 additions and 3 deletions
|
@ -328,7 +328,7 @@ def check_server_updates():
|
|||
logger.info(u"Tautulli Monitor :: No PMS update available.")
|
||||
|
||||
|
||||
def check_cloud_status(log=False):
|
||||
def check_cloud_status(log=False, return_status=False):
|
||||
if log:
|
||||
logger.info(u"Tautulli Monitor :: Checking for Plex Cloud server status...")
|
||||
|
||||
|
@ -337,7 +337,11 @@ def check_cloud_status(log=False):
|
|||
|
||||
if cloud_status:
|
||||
logger.info(u"Tautulli Monitor :: Plex Cloud server is active.")
|
||||
if return_status:
|
||||
return cloud_status
|
||||
check_server_response()
|
||||
else:
|
||||
if log:
|
||||
logger.info(u"Tautulli Monitor :: Plex Cloud server is sleeping.")
|
||||
if return_status:
|
||||
return cloud_status
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue