Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions resources/lib/service_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,15 @@ def start(self):

while not self.abortRequested() and not self.restart:

''' Only run timed tasks if screensaver is inactive to avoid keeping NAS/servers awake
''' Only run timed tasks if screensaver is inactive to avoid keeping NAS/servers awake.
Also skip them while something is playing: grabfanart() issues several synchronous
JSON-RPC library queries (and ImageBlur() runs a PIL blur) on this service thread,
which can briefly starve the video render thread and cause microstutters on weaker
devices. The backgrounds these feed are not visible during fullscreen playback
anyway. Gated on isPlaying() rather than isPlayingVideo() so a brief pause or seek
cannot let the grabber slip through and hitch playback on resume.
'''
if not self.screensaver:
if not self.screensaver and not xbmc.Player().isPlaying():

''' Grab fanarts
'''
Expand Down