Don't know if there are any python ninjas that could help, basically im trying to get on deck / recently added working on XBMC through plexbmc, we have changed the code to use /library/sections/sectionid/onDeck(or recentlyAdded) instead of the aggregated /library/onDeck(or recentlyAdded), which brought up some limitations, basically the skin would need to have declarations for each possible item, so if someone had 20 sections and it was bringing back 25 items per section, the skin would need to account for 500 items, I have now changed that to dynamically list the items, the problem with that is the path declaration in listitem is different from the onclick tag in a skin, so in the skin:
[onclick] PlayMedia(plugin://plugin.video.plexbmc?url=http://192.168.0.20:32400/library/metadata/21995&mode=11&t=7260639398) [/onclick]
that works fine, but now I am creating them dynamically:
def add_listitem(item, thumb, path_to_play): listitem = xbmcgui.ListItem('%s %s - %s' %(item.get('title','Unknown').encode('UTF-8'),item.get('year','Unknown').encode('UTF-8'), item.get('rating','Unknown').encode('UTF-8')), thumbnailImage=thumb, path=path_to_play)
return listitem
But I'm doing something wrong because thats not working either, it doesn't even get to the first printDebug
Anyone have any ideas?
*edit* the above isn't totally accurate, the editor kept stripping bits out but you should get the gist, if you need to see the code exactly as it is it here: https://github.com/KodeStar/plugin.video.plexbmc/tree/dynamic-listitems