Fix art not caching efficiently

This commit is contained in:
tomkat83 2016-10-17 23:15:05 +02:00
parent a2e2d2f5f8
commit 23384c5d9e
2 changed files with 1 additions and 5 deletions

View file

@ -204,7 +204,7 @@ class Image_Cache_Thread(Thread):
# We did not even get a timeout # We did not even get a timeout
break break
queue.task_done() queue.task_done()
log.debug('Downloaded art: %s' % double_urldecode(url)) log.debug('Cached art: %s' % double_urldecode(url))
# Sleep for a bit to reduce CPU strain # Sleep for a bit to reduce CPU strain
xbmc.sleep(sleep_between) xbmc.sleep(sleep_between)
log.info("---===### Stopped Image_Cache_Thread ###===---") log.info("---===### Stopped Image_Cache_Thread ###===---")

View file

@ -1850,9 +1850,7 @@ class LibrarySync(Thread):
# Only do this once every 10 seconds # Only do this once every 10 seconds
if now - lastProcessing > 10: if now - lastProcessing > 10:
lastProcessing = now lastProcessing = now
window('plex_dbScan', value="true")
processItems() processItems()
window('plex_dbScan', clear=True)
# See if there is a PMS message we need to handle # See if there is a PMS message we need to handle
try: try:
message = queue.get(block=False) message = queue.get(block=False)
@ -1861,10 +1859,8 @@ class LibrarySync(Thread):
continue continue
# Got a message from PMS; process it # Got a message from PMS; process it
else: else:
window('plex_dbScan', value="true")
processMessage(message) processMessage(message)
queue.task_done() queue.task_done()
window('plex_dbScan', clear=True)
# NO sleep! # NO sleep!
continue continue
else: else: