Hi @
sualfred how are you?
I'm using your script in my Copacetic skin primarily for calculations, but I wanted to give the widgets a go for a bit of added functionality over what I managed to figure out with xsp paths... In this case, it's providing mixed content results in a widget for the actor currently selected in the videoinfo dialog cast list.
Apologies if this is basic, but I'm having an issue with errors as a result of unsupported characters, but I think I've escaped the string correctly. Not sure where I'm going wrong...
<content target="videos" limit="20" sortby="year" sortorder="descending">plugin://script.embuary.helper/?info=getitemsbyactor&label='$ESCINFO[Container(50).ListItem.Label]'</content>
2020-10-12 23:13:01.557 T:123145370693632 ERROR: GetDirectory - Error getting plugin://script.embuary.helper/?info=getitemsbyactor&label='"Saïd Taghmaoui"'
xml:
2020-10-12 23:13:01.363 T:123145352458240 DEBUG: CAddonSettings[script.embuary.helper]: loading setting definitions
2020-10-12 23:13:01.363 T:123145352458240 DEBUG: CAddonSettings[script.embuary.helper]: trying to load setting definitions from old format...
2020-10-12 23:13:01.415 T:123145352458240 DEBUG: [ script.embuary.helper ] Items by actor Saïd Taghmaoui: No shows found
2020-10-12 23:13:01.419 T:123145352458240 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.UnicodeDecodeError'>
Error Contents: 'ascii' codec can't decode byte 0xc3 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "/Users/ahekmat/Library/Application Support/Kodi/addons/script.embuary.helper/plugin.py", line 76, in <module>
Main()
File "/Users/ahekmat/Library/Application Support/Kodi/addons/script.embuary.helper/plugin.py", line 27, in __init__
self.getinfos()
File "/Users/ahekmat/Library/Application Support/Kodi/addons/script.embuary.helper/plugin.py", line 60, in getinfos
self._execute(plugin,self.info)
File "/Users/ahekmat/Library/Application Support/Kodi/addons/script.embuary.helper/plugin.py", line 68, in _execute
getattr(plugin,action.lower())()
File "/Users/ahekmat/Library/Application Support/Kodi/addons/script.embuary.helper/resources/lib/plugin_content.py", line 810, in getitemsbyactor
plugin_category = ADDON.getLocalizedString(32030) + ' ' + actor
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2: ordinal not in range(128)
-->End of Python script error report<--