Posts: 37
Joined: Apr 2008
Reputation:
0
netmgr
Junior Member
Posts: 37
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 /
Posts: 37
Joined: Apr 2008
Reputation:
0
netmgr
Junior Member
Posts: 37
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
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
xbmc.getInfoLabel("ListItem.Path").split( "/" )[ -2 ]