diff --git a/addon.xml b/addon.xml index 34c35d2..1e31143 100644 --- a/addon.xml +++ b/addon.xml @@ -1,7 +1,7 @@ @@ -9,7 +9,7 @@ executable video audio image - + all diff --git a/service.py b/service.py index a75cc95..62ad778 100644 --- a/service.py +++ b/service.py @@ -140,7 +140,12 @@ while not xbmc.abortRequested: xbmc.sleep(1000) xbmcgui.Window(10000).setProperty("EmbyCon_Service_Timestamp", str(int(time.time()))) - + +# clear user and token when loggin off +WINDOW = xbmcgui.Window(10000) +WINDOW.clearProperty("userid") +WINDOW.clearProperty("AccessToken") + # stop the WebSocket client websocket_thread.stopClient()