Fixes to switching PMS
This commit is contained in:
parent
42f24e1688
commit
0544452c32
1 changed files with 8 additions and 2 deletions
|
@ -87,13 +87,19 @@ def chooseServer():
|
|||
utils.window('suspend_LibraryThread', clear=True)
|
||||
return
|
||||
|
||||
utils.logMsg(title, "User chose server %s" % server['name'], 1)
|
||||
setup.WritePMStoSettings(server)
|
||||
|
||||
if not __LogOut():
|
||||
if not __LogOut(user=True):
|
||||
return
|
||||
|
||||
# First remove playlists
|
||||
utils.deletePlaylists()
|
||||
# Remove video nodes
|
||||
utils.deleteNodes()
|
||||
|
||||
# Log in again
|
||||
__LogIn()
|
||||
__LogIn(user=True)
|
||||
utils.logMsg(title, "Choosing new PMS complete", 1)
|
||||
# '<PMS> connected'
|
||||
xbmcgui.Dialog().notification(
|
||||
|
|
Loading…
Reference in a new issue