2012-08-01, 11:59
Make some tests.
First, I start script in daemon mode in Home.xml :
And in DialogAlbumInfo, I set up properties and call script :
and script get it but with an error :
First, I start script in daemon mode in Home.xml :
Code:
<onload>XBMC.RunScript(script.artistslideshow,daemon=True)</onload>
And in DialogAlbumInfo, I set up properties and call script :
Code:
<?xml version="1.0" encoding="utf-8"?>
<window id="2001">
<onload>SetProperty("CURRENTARTIST","$INFO[ListItem.Artist]")</onload>
<onload>SetProperty("ArtistSlideshow.ExternalCall", "True")</onload>
<onload>XBMC.RunScript(script.artistslideshow,windowid=12001&artistfield=CURRENTARTIST)</onload>
<onunload>clearProperty("ArtistSlideshow.ExternalCall")</onunload>
I think that properties are well set up :
[code]
11:43:42 T:1600 DEBUG: CApplication::ExecuteXBMCAction : Translating SetProperty("CURRENTARTIST","$INFO[ListItem.Artist]")
11:43:42 T:1600 DEBUG: CApplication::ExecuteXBMCAction : To SetProperty("CURRENTARTIST","Adele")
11:43:42 T:1600 DEBUG: CApplication::ExecuteXBMCAction : Translating SetProperty("ArtistSlideshow.ExternalCall", "True")
11:43:42 T:1600 DEBUG: CApplication::ExecuteXBMCAction : To SetProperty("ArtistSlideshow.ExternalCall", "True")
11:43:42 T:1600 DEBUG: CApplication::ExecuteXBMCAction : Translating XBMC.RunScript(script.artistslideshow,windowid=12001&artistfield=CURRENTARTIST)
11:43:42 T:1600 DEBUG: CApplication::ExecuteXBMCAction : To XBMC.RunScript(script.artistslideshow,windowid=12001&artistfield=CURRENTARTIST)
and script get it but with an error :
Code:
11:43:42 T:3632 DEBUG: script.artistslideshow: script version 1.4.1 started
11:43:42 T:3632 DEBUG: script.artistslideshow: window id is set to 12001
11:43:42 T:3632 DEBUG: script.artistslideshow: artist field is set to CURRENTARTIST
11:43:42 T:3632 DEBUG: script.artistslideshow: language = en
13:16:43 T:1348 DEBUG: script.artistslideshow: external call is set to True
13:16:43 T:1348 DEBUG: script.artistslideshow: first song started
13:16:43 T:1348 DEBUG: script.artistslideshow: current artist is U2
13:16:43 T:1348 DEBUG: script.artistslideshow: start download
13:16:43 T:1348 DEBUG: script.artistslideshow: cachedir = C:\Documents and Settings\mibertho\Application Data\XBMC\userdata\addon_data\script.artistslideshow\ArtistSlideshow\3b8e138f\
13:16:43 T:1348 INFO: -->Python script returned the following error<--
13:16:43 T:1348 ERROR: Error Type: <type 'exceptions.UnicodeEncodeError'>
13:16:43 T:1348 ERROR: Error Contents: 'ascii' codec can't encode character u'\xe9' in position 42: ordinal not in range(128)
13:16:44 T:1348 ERROR: Traceback (most recent call last):
File "C:\Documents and Settings\mibertho\Application Data\XBMC\addons\script.artistslideshow\default.py", line 668, in <module>
slideshow = Main()
File "C:\Documents and Settings\mibertho\Application Data\XBMC\addons\script.artistslideshow\default.py", line 132, in __init__
self._use_correct_artwork()
File "C:\Documents and Settings\mibertho\Application Data\XBMC\addons\script.artistslideshow\default.py", line 183, in _use_correct_artwork
self._start_download()
File "C:\Documents and Settings\mibertho\Application Data\XBMC\addons\script.artistslideshow\default.py", line 323, in _start_download
xbmc.executebuiltin('XBMC.Notification("' + __language__(30300) + '", "' + __language__(30301) + '", 10000, ' + __addonicon__ + ')')
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 42: ordinal not in range(128)