mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 09:46:11 +00:00
move the auth create token to the top and dont try to create for each loop
This makes it less auth spammy
This commit is contained in:
parent
167d54c2a3
commit
b8813b5bf7
1 changed files with 2 additions and 1 deletions
|
@ -34,6 +34,7 @@ class Service():
|
||||||
def ServiceEntryPoint(self):
|
def ServiceEntryPoint(self):
|
||||||
|
|
||||||
ConnectionManager().checkServer()
|
ConnectionManager().checkServer()
|
||||||
|
DownloadUtils().authenticate(retreive=True)
|
||||||
|
|
||||||
# check kodi library sources
|
# check kodi library sources
|
||||||
mayRun = utils.checkKodiSources()
|
mayRun = utils.checkKodiSources()
|
||||||
|
@ -79,7 +80,7 @@ class Service():
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
# background worker for database sync
|
# background worker for database sync
|
||||||
if DownloadUtils().authenticate(retreive=True) != "":
|
if DownloadUtils().authenticate(retreive=False) != "":
|
||||||
|
|
||||||
# Correctly launch the websocket, if user manually launches the add-on
|
# Correctly launch the websocket, if user manually launches the add-on
|
||||||
if (self.newWebSocketThread == None):
|
if (self.newWebSocketThread == None):
|
||||||
|
|
Loading…
Reference in a new issue