Clear playlists and video nodes on user switch
- And not on fullsync (widgets might brake)
This commit is contained in:
parent
753e090cec
commit
88b581f756
2 changed files with 5 additions and 4 deletions
|
@ -566,6 +566,10 @@ def switchPlexUser():
|
||||||
counter += 1
|
counter += 1
|
||||||
xbmc.sleep(50)
|
xbmc.sleep(50)
|
||||||
|
|
||||||
|
# First remove playlists
|
||||||
|
utils.deletePlaylists()
|
||||||
|
# Remove video nodes
|
||||||
|
utils.deleteNodes()
|
||||||
# Log out currently signed in user:
|
# Log out currently signed in user:
|
||||||
utils.window('emby_serverStatus', value="401")
|
utils.window('emby_serverStatus', value="401")
|
||||||
# Request lib sync to get user view data (e.g. watched/unwatched)
|
# Request lib sync to get user view data (e.g. watched/unwatched)
|
||||||
|
|
|
@ -429,10 +429,7 @@ class LibrarySync(Thread):
|
||||||
|
|
||||||
# Ensure that DBs exist if called for very first time
|
# Ensure that DBs exist if called for very first time
|
||||||
self.initializeDBs()
|
self.initializeDBs()
|
||||||
# First remove playlists
|
|
||||||
utils.deletePlaylists()
|
|
||||||
# Remove video nodes
|
|
||||||
utils.deleteNodes()
|
|
||||||
# Set views. Abort if unsuccessful
|
# Set views. Abort if unsuccessful
|
||||||
if not self.maintainViews():
|
if not self.maintainViews():
|
||||||
xbmc.executebuiltin('InhibitIdleShutdown(false)')
|
xbmc.executebuiltin('InhibitIdleShutdown(false)')
|
||||||
|
|
Loading…
Reference in a new issue