Posts: 5
Joined: Mar 2016
Reputation:
0
I was trying to figure out what a property was, and figured it was probably a property in an object. Am i right? I would like to get all the properties of a window or list item or whatever. How would i do this? I know about getProperty(...) but it's like you have to know the properties already or you can't use it... Thanks..
Posts: 15,264
Joined: Jan 2009
Reputation:
728
ronie
Team-Kodi Member
Posts: 15,264
it's not possible to retrieve a list of all properties.
Posts: 5
Joined: Mar 2016
Reputation:
0
2016-03-18, 23:31
(This post was last modified: 2016-03-18, 23:31 by raziellight.)
Thanks for the reply. So how am i supposed to know what properties there are?
Posts: 5
Joined: Mar 2016
Reputation:
0
2016-03-19, 00:44
(This post was last modified: 2016-03-19, 00:45 by raziellight.)
I know about the python-docs. The thing is there seems to be a gap in documentation for built in properties. For example, li.setProperty('IsPlayable', 'true') is all over the place in code, and seem to be built in, yet it's not in the python-docs, and it can only be found in code. There is no reference for it. Seems like there should be a place for these built in properties... And i do not see any properties for windows or listitems in the python docs.
Posts: 5
Joined: Mar 2016
Reputation:
0
2016-03-19, 02:15
(This post was last modified: 2016-03-19, 03:03 by raziellight.)
Right now i'm just getting my feet wet in figuring out kodi. But i've wanted to get the url of the media playing and have a button in the video, and thought there might be a property in kodi for it. When you click on it, a window will pop up with the url of the playing video. Since properties aren't explained very well, i didn't know that they were mostly used in the add-on code. I tried ListItem.Path but it just came up with the kodi url for iptv simple client, and just listed the stream as 0001 after a url. So that was less than ideal. There seems to be no built in feature to get this either. You have to go to the actual files and get the links there by digging through lines of text.