Suspend fanart sync during playback

This commit is contained in:
croneter 2018-11-13 14:54:54 +01:00
parent c168981a5b
commit 789b214b50
2 changed files with 5 additions and 2 deletions

View file

@ -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:

View file

@ -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?