2010-10-21, 01:00
Of the list of issue in the earlier post, I've resolved most.
As far as keyword processing goes, while SWIG doesn't support it, I managed to put it in a few key places where it seems to be used frequently. Namely:
xbmcaddon.Addon constructor
xbmcgui.ListItem constructor
xbmcgui.ListItem.setInfo
xbmcgui.ListItem.addContextMenuItems
xbmcgui.ListItem.setInfo will now handle any type passed in the dictionary infoLabels by converting all entry values to unicode strings.
The major remaining issue (that I know of) is that some scripts expect "os.getcwd" to return the directory the script is in. This is a general problem with running configure with --enable-external-python (setting #define USE_EXTERNAL_PYTHON) rather than my current implementation so I'd appreciate some comments on how best to address this.
Currently Apple Movie Trailers will run - as long as you start xbmc from within the ~/.xbmc/addons/plugin.video.apple.movie.trailers.lite/ directory (avoiding the above problem for this one script) and as long as you fix the few places other than those listed where the script expects to be able to use keywords in function calls.
Now I'm really looking for some feedback.
Thanks
Jim
As far as keyword processing goes, while SWIG doesn't support it, I managed to put it in a few key places where it seems to be used frequently. Namely:
xbmcaddon.Addon constructor
xbmcgui.ListItem constructor
xbmcgui.ListItem.setInfo
xbmcgui.ListItem.addContextMenuItems
xbmcgui.ListItem.setInfo will now handle any type passed in the dictionary infoLabels by converting all entry values to unicode strings.
The major remaining issue (that I know of) is that some scripts expect "os.getcwd" to return the directory the script is in. This is a general problem with running configure with --enable-external-python (setting #define USE_EXTERNAL_PYTHON) rather than my current implementation so I'd appreciate some comments on how best to address this.
Currently Apple Movie Trailers will run - as long as you start xbmc from within the ~/.xbmc/addons/plugin.video.apple.movie.trailers.lite/ directory (avoiding the above problem for this one script) and as long as you fix the few places other than those listed where the script expects to be able to use keywords in function calls.
Now I'm really looking for some feedback.
Thanks
Jim