get selected libary item filename
#16
its a bit hit and miss because it assumes that the path statement always starts with the same format, it may or maynot im not to sure on it, however all my 2 hundred films do so far

a better way would be to look for the second / from the right and take the chunk after it then remove the trailing /
Reply
#17
remember that videodb://1/2/44/ isnt the path of my actual film, i have no idea what the first bit of it is, the last bit is what im after as it corresponds to the idmovie field.

the wiki says 'Shows the path of the currently selected song or movie in a list or thumb control '

however it clearly doesnt show the actual path to my film

something seems amiss to me here
Reply
#18
xbmc.getInfoLabel("ListItem.Path").split( "/" )[ -2 ]
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#19
Great, many thanks for your help, much appreciated

Nuka1195 Wrote:xbmc.getInfoLabel("ListItem.Path").split( "/" )[ -2 ]
Reply

Logout Mark Read Team Forum Stats Members Help
get selected libary item filename0