Ensure credentials are known when reconnecting
- Re-Instantiate for every new connection attempt
This commit is contained in:
parent
e8b692c7eb
commit
f3afa8dab1
1 changed files with 3 additions and 4 deletions
|
@ -127,8 +127,7 @@ class Service():
|
||||||
kodiProfile = xbmc.translatePath("special://profile")
|
kodiProfile = xbmc.translatePath("special://profile")
|
||||||
|
|
||||||
# Server auto-detect
|
# Server auto-detect
|
||||||
setup = initialsetup.InitialSetup()
|
initialsetup.InitialSetup().setup()
|
||||||
setup.setup()
|
|
||||||
|
|
||||||
# Queue for background sync
|
# Queue for background sync
|
||||||
queue = Queue.Queue(maxsize=200)
|
queue = Queue.Queue(maxsize=200)
|
||||||
|
@ -245,7 +244,7 @@ class Service():
|
||||||
break
|
break
|
||||||
xbmc.sleep(50)
|
xbmc.sleep(50)
|
||||||
else:
|
else:
|
||||||
# Wait until Emby server is online
|
# Wait until Plex server is online
|
||||||
# or Kodi is shut down.
|
# or Kodi is shut down.
|
||||||
while not monitor.abortRequested():
|
while not monitor.abortRequested():
|
||||||
server = user.getServer()
|
server = user.getServer()
|
||||||
|
@ -260,7 +259,6 @@ class Service():
|
||||||
window('emby_online', value="false")
|
window('emby_online', value="false")
|
||||||
# Suspend threads
|
# Suspend threads
|
||||||
window('suspend_LibraryThread', value='true')
|
window('suspend_LibraryThread', value='true')
|
||||||
|
|
||||||
xbmcgui.Dialog().notification(
|
xbmcgui.Dialog().notification(
|
||||||
heading=lang(33001),
|
heading=lang(33001),
|
||||||
message="%s %s"
|
message="%s %s"
|
||||||
|
@ -273,6 +271,7 @@ class Service():
|
||||||
# Periodically check if the IP changed, e.g. per minute
|
# Periodically check if the IP changed, e.g. per minute
|
||||||
if counter > 30:
|
if counter > 30:
|
||||||
counter = 0
|
counter = 0
|
||||||
|
setup = initialsetup.InitialSetup()
|
||||||
tmp = setup.PickPMS()
|
tmp = setup.PickPMS()
|
||||||
if tmp is not None:
|
if tmp is not None:
|
||||||
setup.WritePMStoSettings(tmp)
|
setup.WritePMStoSettings(tmp)
|
||||||
|
|
Loading…
Reference in a new issue