mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Test allowing updates during playback
This commit is contained in:
parent
1b430e1090
commit
22c62d9727
2 changed files with 7 additions and 7 deletions
|
@ -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()
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue