Access to ListItem from Context Click
#1
Wondering how you get access to the ListItem that is selected when you execute one of the ListItem's context menu items.. I wanna set a property and also set the watched count on a listitem from the context menu when in Python.. Can't really find documentation on this?
Reply
#2
Same problem here, I'm finding a solution...
Reply
#3
I spent a while trying to figure this one out. According to the Wiki it says to use sys.listitem if you are using a Context Item addon, but I couldn't get any real data from that. Perhaps since you are setting data it will work.

For me I just used getInfoLabel like this: xbmc.getInfoLabel('ListItem.Title') to get data since I guess it automatically references the selected listitem, but I'm not sure as I'm just starting.
Reply

Logout Mark Read Team Forum Stats Members Help
Access to ListItem from Context Click0