mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 15:56:07 -07:00
Reconnect Plex Cloud without keeping the server awake
This commit is contained in:
parent
df016243dd
commit
e1dca1509a
6 changed files with 77 additions and 28 deletions
|
@ -325,4 +325,17 @@ def check_server_updates():
|
|||
plexpy.NOTIFY_QUEUE.put({'notify_action': 'on_pmsupdate', 'pms_download_info': download_info})
|
||||
|
||||
else:
|
||||
logger.info(u"Tautulli Monitor :: No PMS update available.")
|
||||
logger.info(u"Tautulli Monitor :: No PMS update available.")
|
||||
|
||||
|
||||
def check_cloud_status():
|
||||
logger.info(u"Tautulli Monitor :: Checking for Plex Cloud server status...")
|
||||
|
||||
plex_tv = plextv.PlexTV()
|
||||
cloud_status = plex_tv.get_cloud_server_status()
|
||||
|
||||
if cloud_status:
|
||||
logger.info(u"Tautulli Monitor :: Plex Cloud server is active.")
|
||||
check_server_response()
|
||||
else:
|
||||
logger.info(u"Tautulli Monitor :: Plex Cloud server is sleeping.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue