def getCondVisibility(text):
'''executes the builtin getCondVisibility'''
# temporary solution: check if strings needs to be adjusted for backwards compatability
if KODI_VERSION < 17:
text = text.replace("Integer.IsGreater", "IntegerGreaterThan")
text = text.replace("String.Contains", "SubString")
text = text.replace("String.IsEqual", "StringCompare")
return xbmc.getCondVisibility(text)
评论列表
文章目录