From 5217ed815dfb5d60f532e5e5c02ab1f65385e756 Mon Sep 17 00:00:00 2001 From: faush01 Date: Tue, 17 Mar 2015 13:33:20 +1100 Subject: [PATCH] dont set runtime if zero and add current to log for updatePropertyArray call --- resources/lib/LibrarySync.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/lib/LibrarySync.py b/resources/lib/LibrarySync.py index bf8374ee..355e722f 100644 --- a/resources/lib/LibrarySync.py +++ b/resources/lib/LibrarySync.py @@ -710,7 +710,7 @@ class LibrarySync(): if pendingChanges: xbmc.sleep(sleepVal) - utils.logMsg("MB3 Sync","updating propertyarray..." + str(propertyName) + ": " + str(json_array)) + utils.logMsg("MB3 Sync","updating propertyarray... Name:" + str(propertyName) + " Current:" + str(currentvalues) + " New:" + str(json_array)) xbmc.executeJSONRPC(jsoncommand %(id,propertyName,json_array)) def CleanName(self, name): @@ -823,7 +823,9 @@ class LibrarySync(): premieredate = premieredatelist[0] SubElement(root, "firstaired").text = premieredate SubElement(root, "premieredate").text = premieredate - SubElement(root, "runtime").text = str(timeInfo.get('Duration')) + + if(timeInfo.get('Duration') != "0"): + SubElement(root, "runtime").text = str(timeInfo.get('Duration')) SubElement(root, "plot").text = utils.convertEncoding(API().getOverview(item))