Clear playlists and video nodes on user switch

- And not on fullsync (widgets might brake)
This commit is contained in:
tomkat83 2016-04-07 16:13:02 +02:00
parent 753e090cec
commit 88b581f756
2 changed files with 5 additions and 4 deletions

View file

@ -566,6 +566,10 @@ def switchPlexUser():
counter += 1
xbmc.sleep(50)
# First remove playlists
utils.deletePlaylists()
# Remove video nodes
utils.deleteNodes()
# Log out currently signed in user:
utils.window('emby_serverStatus', value="401")
# Request lib sync to get user view data (e.g. watched/unwatched)

View file

@ -429,10 +429,7 @@ class LibrarySync(Thread):
# Ensure that DBs exist if called for very first time
self.initializeDBs()
# First remove playlists
utils.deletePlaylists()
# Remove video nodes
utils.deleteNodes()
# Set views. Abort if unsuccessful
if not self.maintainViews():
xbmc.executebuiltin('InhibitIdleShutdown(false)')