2013-04-11, 21:07
Sure you can help :)
Devs will be able to give you some pointers on where to start.
Devs will be able to give you some pointers on where to start.
(2012-11-10, 15:26)Fice Wrote: b) Keep asynchron but supply the context item addon with the list item.
Right now i think version b is the better solution (probably also easier).
I tried to implement that behaviour yesterday but ran into some complications. Currently it seem's that you can only pass strings as parameters to a python script. Will need to look closer how i can actually achieve what i want.
XBMCAddon::xbmcgui::ListItem* arg = new XBMCAddon::xbmcgui::ListItem(item);
m_item = PythonBindings::makePythonInstance(arg, &PythonBindings::PyXBMCAddon_xbmcgui_ListItem_Type, &PythonBindings::TyXBMCAddon_xbmcgui_ListItem_Type, true);
if (m_item != NULL) {
if (0 != PySys_SetObject((char*)"item", m_item))
CLog::Log(LOGDEBUG, "setSysParameter failed!");
}
StringCompare(Window(Home).Property(key),true)
Quote:Returns true if the info equals the string. Please note that string can also be a $LOCALIZE[] or info label (without $INFO prefix). And that in a panelview or similar this only works on the focused item. Both arguments are evaluated on the fly, unlike substring.
SubString(listitem.path,login=true)
SubString(listitem.path,avi,right)
!SubString(listitem.path,https,left)
Quote:Returns true if the string is found anywhere in the info
Parameter is evaluated at time of parsing (XML load) not on the fly.