Test allowing updates during playback

This commit is contained in:
xnappo 2015-05-06 22:27:22 -05:00
parent 1b430e1090
commit 22c62d9727
2 changed files with 7 additions and 7 deletions

View file

@ -172,12 +172,12 @@ class WebSocketThread(threading.Thread):
self.logMsg("Message : WebSocket LibraryChanged : Items Updated : " + str(itemsUpdated), 0)
self.logMsg("Message : WebSocket LibraryChanged : Items Removed : " + str(itemsRemoved), 0)
if xbmc.Player().isPlaying():
pendingItemsToRemove += itemsRemoved
pendingItemsToUpdate += itemsToUpdate
else:
self.remove_items(itemsRemoved)
self.update_items(itemsToUpdate)
#if xbmc.Player().isPlaying():
# pendingItemsToRemove += itemsRemoved
# pendingItemsToUpdate += itemsToUpdate
#else:
self.remove_items(itemsRemoved)
self.update_items(itemsToUpdate)
def remove_items(self, itemsRemoved):
connection = utils.KodiSQL()

View file

@ -128,7 +128,7 @@ class Service():
if self.KodiMonitor.waitForAbort(1):
# Abort was requested while waiting. We should exit
break
WebSocketThread().processPendingActions()
#WebSocketThread().processPendingActions()
else:
if self.warn_auth: