Fix art not caching efficiently
This commit is contained in:
parent
a2e2d2f5f8
commit
23384c5d9e
2 changed files with 1 additions and 5 deletions
|
@ -204,7 +204,7 @@ class Image_Cache_Thread(Thread):
|
|||
# We did not even get a timeout
|
||||
break
|
||||
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
|
||||
xbmc.sleep(sleep_between)
|
||||
log.info("---===### Stopped Image_Cache_Thread ###===---")
|
||||
|
|
|
@ -1850,9 +1850,7 @@ class LibrarySync(Thread):
|
|||
# Only do this once every 10 seconds
|
||||
if now - lastProcessing > 10:
|
||||
lastProcessing = now
|
||||
window('plex_dbScan', value="true")
|
||||
processItems()
|
||||
window('plex_dbScan', clear=True)
|
||||
# See if there is a PMS message we need to handle
|
||||
try:
|
||||
message = queue.get(block=False)
|
||||
|
@ -1861,10 +1859,8 @@ class LibrarySync(Thread):
|
|||
continue
|
||||
# Got a message from PMS; process it
|
||||
else:
|
||||
window('plex_dbScan', value="true")
|
||||
processMessage(message)
|
||||
queue.task_done()
|
||||
window('plex_dbScan', clear=True)
|
||||
# NO sleep!
|
||||
continue
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue