No longer necessary.
This commit is contained in:
parent
bdea60fba3
commit
c25c2fc1bb
2 changed files with 16 additions and 19 deletions
|
@ -34,7 +34,6 @@ class Kodi_Monitor(xbmc.Monitor):
|
|||
downloadUtils = DownloadUtils()
|
||||
|
||||
if method == "VideoLibrary.OnUpdate":
|
||||
if WINDOW.getProperty('prevent_libraryUpdate') != "true":
|
||||
jsondata = json.loads(data)
|
||||
if jsondata != None:
|
||||
|
||||
|
@ -51,7 +50,6 @@ class Kodi_Monitor(xbmc.Monitor):
|
|||
WriteKodiVideoDB().updatePlayCountFromKodi(item, type, playcount)
|
||||
|
||||
self.clearProperty(type,item)
|
||||
WINDOW.clearProperty('prevent_libraryUpdate')
|
||||
|
||||
if method == "System.OnWake":
|
||||
xbmc.sleep(10000) #Allow network to wake up
|
||||
|
|
|
@ -289,7 +289,6 @@ class WebSocketThread(threading.Thread):
|
|||
LibrarySync().IncrementalSync(itemsToUpdate)
|
||||
|
||||
def user_data_update(self, userDataList):
|
||||
self.WINDOW.setProperty('prevent_libraryUpdate', "true")
|
||||
itemsToUpdate = list()
|
||||
for userData in userDataList:
|
||||
itemId = userData.get("ItemId")
|
||||
|
|
Loading…
Reference in a new issue