mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 10:46:11 +00:00
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()
|
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
|
||||||
|
|
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue