Fixes to switching PMS

This commit is contained in:
tomkat83 2016-05-29 17:17:33 +02:00
parent 42f24e1688
commit 0544452c32

View file

@ -87,13 +87,19 @@ def chooseServer():
utils.window('suspend_LibraryThread', clear=True) utils.window('suspend_LibraryThread', clear=True)
return return
utils.logMsg(title, "User chose server %s" % server['name'], 1)
setup.WritePMStoSettings(server) setup.WritePMStoSettings(server)
if not __LogOut(): if not __LogOut(user=True):
return return
# First remove playlists
utils.deletePlaylists()
# Remove video nodes
utils.deleteNodes()
# Log in again # Log in again
__LogIn() __LogIn(user=True)
utils.logMsg(title, "Choosing new PMS complete", 1) utils.logMsg(title, "Choosing new PMS complete", 1)
# '<PMS> connected' # '<PMS> connected'
xbmcgui.Dialog().notification( xbmcgui.Dialog().notification(