dont set runtime if zero and add current to log for updatePropertyArray call

This commit is contained in:
faush01 2015-03-17 13:33:20 +11:00
parent acfc9ee258
commit 5217ed815d
1 changed files with 4 additions and 2 deletions

View File

@ -710,7 +710,7 @@ class LibrarySync():
if pendingChanges: if pendingChanges:
xbmc.sleep(sleepVal) 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)) xbmc.executeJSONRPC(jsoncommand %(id,propertyName,json_array))
def CleanName(self, name): def CleanName(self, name):
@ -823,6 +823,8 @@ class LibrarySync():
premieredate = premieredatelist[0] premieredate = premieredatelist[0]
SubElement(root, "firstaired").text = premieredate SubElement(root, "firstaired").text = premieredate
SubElement(root, "premieredate").text = premieredate SubElement(root, "premieredate").text = premieredate
if(timeInfo.get('Duration') != "0"):
SubElement(root, "runtime").text = str(timeInfo.get('Duration')) SubElement(root, "runtime").text = str(timeInfo.get('Duration'))
SubElement(root, "plot").text = utils.convertEncoding(API().getOverview(item)) SubElement(root, "plot").text = utils.convertEncoding(API().getOverview(item))