Suspend Alexa thread if Plex user is restricted

- Alexa currently only works for the master user for Plex home
This commit is contained in:
tomkat83 2017-03-05 15:38:13 +01:00
parent 25afc0c702
commit 57408c5137

View file

@ -251,3 +251,11 @@ class Alexia_Websocket(WebSocket):
def IOError_response(self):
pass
def threadSuspended(self):
"""
Overwrite to ignore library sync stuff and allow to check for
plex_restricteduser
"""
return (self._threadSuspended or
window('plex_restricteduser') == 'true')