No longer necessary.

This commit is contained in:
angelblue05 2015-05-24 23:29:42 -05:00
parent bdea60fba3
commit c25c2fc1bb
2 changed files with 16 additions and 19 deletions

View File

@ -34,7 +34,6 @@ class Kodi_Monitor(xbmc.Monitor):
downloadUtils = DownloadUtils() downloadUtils = DownloadUtils()
if method == "VideoLibrary.OnUpdate": if method == "VideoLibrary.OnUpdate":
if WINDOW.getProperty('prevent_libraryUpdate') != "true":
jsondata = json.loads(data) jsondata = json.loads(data)
if jsondata != None: if jsondata != None:
@ -51,7 +50,6 @@ class Kodi_Monitor(xbmc.Monitor):
WriteKodiVideoDB().updatePlayCountFromKodi(item, type, playcount) WriteKodiVideoDB().updatePlayCountFromKodi(item, type, playcount)
self.clearProperty(type,item) self.clearProperty(type,item)
WINDOW.clearProperty('prevent_libraryUpdate')
if method == "System.OnWake": if method == "System.OnWake":
xbmc.sleep(10000) #Allow network to wake up xbmc.sleep(10000) #Allow network to wake up

View File

@ -289,7 +289,6 @@ class WebSocketThread(threading.Thread):
LibrarySync().IncrementalSync(itemsToUpdate) LibrarySync().IncrementalSync(itemsToUpdate)
def user_data_update(self, userDataList): def user_data_update(self, userDataList):
self.WINDOW.setProperty('prevent_libraryUpdate', "true")
itemsToUpdate = list() itemsToUpdate = list()
for userData in userDataList: for userData in userDataList:
itemId = userData.get("ItemId") itemId = userData.get("ItemId")