From cda68d14b46ec4f58406236a8bfcd6c57a56d079 Mon Sep 17 00:00:00 2001 From: croneter Date: Sat, 19 Aug 2017 14:39:00 +0200 Subject: [PATCH] Fix stop synching if path not found - Fixes #333 --- resources/lib/library_sync/get_metadata.py | 2 +- resources/lib/library_sync/process_metadata.py | 2 +- resources/lib/library_sync/sync_info.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/lib/library_sync/get_metadata.py b/resources/lib/library_sync/get_metadata.py index ed3e187e..2100f1f0 100644 --- a/resources/lib/library_sync/get_metadata.py +++ b/resources/lib/library_sync/get_metadata.py @@ -16,7 +16,7 @@ log = getLogger("PLEX."+__name__) ############################################################################### -@thread_methods(add_stops=['SUSPEND_LIBRARY_THREAD']) +@thread_methods(add_stops=['SUSPEND_LIBRARY_THREAD', 'STOP_SYNC']) class Threaded_Get_Metadata(Thread): """ Threaded download of Plex XML metadata for a certain library item. diff --git a/resources/lib/library_sync/process_metadata.py b/resources/lib/library_sync/process_metadata.py index c4c599a4..cdefa952 100644 --- a/resources/lib/library_sync/process_metadata.py +++ b/resources/lib/library_sync/process_metadata.py @@ -15,7 +15,7 @@ log = getLogger("PLEX."+__name__) ############################################################################### -@thread_methods(add_stops=['SUSPEND_LIBRARY_THREAD']) +@thread_methods(add_stops=['SUSPEND_LIBRARY_THREAD', 'STOP_SYNC']) class Threaded_Process_Metadata(Thread): """ Not yet implemented for more than 1 thread - if ever. Only to be called by diff --git a/resources/lib/library_sync/sync_info.py b/resources/lib/library_sync/sync_info.py index 37bbaa21..494b499a 100644 --- a/resources/lib/library_sync/sync_info.py +++ b/resources/lib/library_sync/sync_info.py @@ -19,7 +19,7 @@ LOCK = Lock() ############################################################################### -@thread_methods(add_stops=['SUSPEND_LIBRARY_THREAD']) +@thread_methods(add_stops=['SUSPEND_LIBRARY_THREAD', 'STOP_SYNC']) class Threaded_Show_Sync_Info(Thread): """ Threaded class to show the Kodi statusbar of the metadata download.