From 789b214b50b313801fb6d21b6d4ac0cb510d40c8 Mon Sep 17 00:00:00 2001 From: croneter Date: Tue, 13 Nov 2018 14:54:54 +0100 Subject: [PATCH] Suspend fanart sync during playback --- resources/lib/library_sync/fanart.py | 5 ++++- resources/lib/state.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/resources/lib/library_sync/fanart.py b/resources/lib/library_sync/fanart.py index 03c8cbff..3963aead 100644 --- a/resources/lib/library_sync/fanart.py +++ b/resources/lib/library_sync/fanart.py @@ -31,7 +31,10 @@ class FanartThread(backgroundthread.KillableThread): return state.STOP_PKC def isSuspended(self): - return state.SUSPEND_LIBRARY_THREAD or state.STOP_SYNC or state.DB_SCAN + return (state.SUSPEND_LIBRARY_THREAD or + state.STOP_SYNC or + state.DB_SCAN or + state.SUSPEND_SYNC) def run(self): try: diff --git a/resources/lib/state.py b/resources/lib/state.py index 2b751629..4b0a9dd9 100644 --- a/resources/lib/state.py +++ b/resources/lib/state.py @@ -27,7 +27,7 @@ PMS_SERVER = None SUSPEND_LIBRARY_THREAD = False # Set if user decided to cancel sync STOP_SYNC = False -# Set e.g. during media playback if PKC should not do any syncs. Will NOT +# Set during media playback if PKC should not do any syncs. Will NOT # suspend synching of playstate progress SUSPEND_SYNC = False # Could we access the paths?