From 9781131cd2b5a81ef9d06b33af4ecac76049af3d Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Thu, 7 Apr 2016 09:02:52 +0200 Subject: [PATCH] Also clear video nodes and playlists on full sync - Called e.g. when switching Plex user --- resources/lib/librarysync.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index 8c250fdb..e808d647 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -422,6 +422,10 @@ 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)')