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)
|
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(
|
||||||
|
|
Loading…
Reference in a new issue