2014-10-08, 00:58
I have recently tried to serialise a listitem using pickle to pass it between the addon and services processes of my addon. But an error occurs with the Label method in the listitem class; traceback says pickles problem is that it should be a string or unicode.
P.S. As I couldnt pickle the instances of ListItem, I have changed them to a generic class and am trying to add xbmcgui.ListItem to each instances __bases__. But you can only do that with classes, and type(xbmcgui.ListItem) returns 'type'.
What am I missing here?
P.S. As I couldnt pickle the instances of ListItem, I have changed them to a generic class and am trying to add xbmcgui.ListItem to each instances __bases__. But you can only do that with classes, and type(xbmcgui.ListItem) returns 'type'.
What am I missing here?