Black09/script.metadata.actors

issue with some actors

Middlle opened this issue · 4 comments

Bruce Willis for this error.

21:27:24 T:5264 NOTICE: Thread XBPyThread start, auto delete: false
21:27:24 T:5264 NOTICE: -->Python Interpreter Initialized<--
21:27:24 T:5232 WARNING: Trying to add unsupported control type 1
21:27:51 T:5264 ERROR: EXCEPTION: Non-Existent Control 5
21:27:51 T:5264 ERROR: Traceback (most recent call last):
21:27:51 T:5264 ERROR: File "C:\Users\Fabio\AppData\Roaming\XBMC\addons\script.metadata.actors\resources\lib\dialoginfo.py", line 197, in setContainer
21:27:51 T:5264 ERROR: listitem = common.setActorProperties( listitem, self.actor )
21:27:51 T:5264 ERROR: File "C:\Users\Fabio\AppData\Roaming\XBMC\addons\script.metadata.actors\resources\lib\common.py", line 38, in setActorProperties
21:27:51 T:5264 ERROR: listitem.setProperty( "Birthday", str( _unicode( metautils.translate_date( birthday, dateformat ) ) ) )
21:27:51 T:5264 ERROR: UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 1: ordinal not in range(128)
21:27:51 T:5232 ERROR: CLocalizeStrings::ClearBlock: Trying to clear non existent block C:\Users\Fabio\AppData\Roaming\XBMC\addons\script.metadata.actors

Noticed that, too. Have to see how to fix it.

using unicode instead str fixed for me, in common.py line 38

listitem.setProperty( "Birthday",     unicode( _unicode( metautils.translate_date( birthday, dateformat ) ) ) )

but it messes a bit with the date, got this result Sábado, 19' de 'Março' de '1955(Idade 58) need fix date format to get ride of the ' '

Remove the _unicode and try, it's not necessary I think. Seems to work fine here for me with just unicode. If it also works for you, I'll commit it.

I removed and all seems to work, no issues.