allow play count updates to be pushed to the server even if sync is running
This commit is contained in:
parent
7bd7c10a0f
commit
c6917f5bd3
2 changed files with 17 additions and 13 deletions
|
@ -91,7 +91,7 @@ class CreateFiles():
|
||||||
changes = False
|
changes = False
|
||||||
if not xbmcvfs.exists(nfoFile):
|
if not xbmcvfs.exists(nfoFile):
|
||||||
changes = True
|
changes = True
|
||||||
utils.logMsg("MB3 Syncer","creating NFO file " + nfoFile)
|
#utils.logMsg("MB3 Syncer","creating NFO file " + nfoFile)
|
||||||
xbmcvfs.mkdir(itemPath)
|
xbmcvfs.mkdir(itemPath)
|
||||||
root = Element(rootelement)
|
root = Element(rootelement)
|
||||||
SubElement(root, "id").text = item["Id"]
|
SubElement(root, "id").text = item["Id"]
|
||||||
|
|
|
@ -23,8 +23,12 @@ class Kodi_Monitor(xbmc.Monitor):
|
||||||
if method == "VideoLibrary.OnUpdate":
|
if method == "VideoLibrary.OnUpdate":
|
||||||
|
|
||||||
#check windowprop if the sync is busy to prevent any false updates
|
#check windowprop if the sync is busy to prevent any false updates
|
||||||
WINDOW = xbmcgui.Window( 10000 )
|
#WINDOW = xbmcgui.Window( 10000 )
|
||||||
if WINDOW.getProperty("librarysync") != "busy":
|
#if WINDOW.getProperty("librarysync") != "busy":
|
||||||
|
# I don't thing we need this, the playcount is not present in updates that don't touch that
|
||||||
|
# and when the playcount is updated byt he sync it just sends the same data back to the server
|
||||||
|
# if you add this back in you will never be able to trigger a play status update while the sync is running
|
||||||
|
|
||||||
xbmc.log("Kodi_Monitor -> onNotification -> VideoLibrary.OnUpdate : " + str(data))
|
xbmc.log("Kodi_Monitor -> onNotification -> VideoLibrary.OnUpdate : " + str(data))
|
||||||
jsondata = json.loads(data)
|
jsondata = json.loads(data)
|
||||||
if jsondata != None:
|
if jsondata != None:
|
||||||
|
|
Loading…
Reference in a new issue