From e009c371b2a56a0bae8b6f8d9c9367c9788ddcde Mon Sep 17 00:00:00 2001 From: croneter Date: Thu, 29 Aug 2019 10:32:59 +0200 Subject: [PATCH] Force a full sync of all items after choosing a new PMS, changing a PMS' address and changing which Plex libraries to sync --- resources/lib/service_entry.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/resources/lib/service_entry.py b/resources/lib/service_entry.py index e85c5442..65aa6d28 100644 --- a/resources/lib/service_entry.py +++ b/resources/lib/service_entry.py @@ -198,7 +198,8 @@ class Service(object): app.ACCOUNT.set_unauthenticated() self.server_has_been_online = False self.welcome_msg = False - # Force a full sync + # Force a full sync of all items + library_sync.force_full_sync() app.SYNC.run_lib_scan = 'full' # Enable the main loop to continue app.APP.suspend = False @@ -268,7 +269,8 @@ class Service(object): app.ACCOUNT.set_unauthenticated() self.server_has_been_online = False self.welcome_msg = False - # Force a full sync + # Force a full sync of all items + library_sync.force_full_sync() app.SYNC.run_lib_scan = 'full' # Enable the main loop to continue app.APP.suspend = False @@ -295,7 +297,8 @@ class Service(object): # Get newest sections from the PMS if not sections.sync_from_pms(self, pick_libraries=True): return - # Force a full sync + # Force a full sync of all items + library_sync.force_full_sync() app.SYNC.run_lib_scan = 'full' finally: app.APP.resume_threads()