2011-10-20, 15:52
k_zeon - the quick fix in t0mm0's common library to get the infolabels to work:
Open up addon.py and make the following change:
Currently it only allows strings to be passed, this will catch and let pass any non-strings
Open up addon.py and make the following change:
Code:
def unescape(self, text):
'''
Decodes HTML entities in a string.
You can add more entities to the ``rep`` dictionary.
Args:
text (str): String to be cleaned.
Returns:
Cleaned string.
'''
try:
text = self.decode(text)
rep = {'<': '<',
'>': '>',
'"': '"',
'’': '\'',
'´': '\'',
}
for s, r in rep.items():
text = text.replace(s, r)
# this has to be last:
text = text.replace("&", "&")
[b] except TypeError:
pass[/b]
return text
Currently it only allows strings to be passed, this will catch and let pass any non-strings