Posts: 49
Joined: May 2018
Reputation:
7
Prior to Kodi 18 Alpha 1 I was able to select the item in a container by using the following:
ListItem(NUMBER).FolderPath
Where number would represent the position in the directory of the item.
Now ListItem(1).FolderPath returns None whereas prior it would return the path of the item in position 1 of the directory.
Can anyone please help?
Posts: 12,483
Joined: Oct 2014
Reputation:
607
Thread moved to addon development
Posts: 1,904
Joined: Jan 2015
Reputation:
127
ksooo
Team-Kodi Developer
Posts: 1,904
Phrase update to latest Kodi nightly and report back . There are chances that the issue is already solved.
Posts: 49
Joined: May 2018
Reputation:
7
Thanks for the reply:
Just updated and tested on KodiSetup-20180905-b69ac071-master-x64.exe
The issue is still present, nothing is returned
r = control.infoLabel('ListItem(%s).FolderPath' % i)
The content of r is blank.
On Kodi 17.6 the content prints the path of the item selected from the list but the number entered in ListItem(NumberHere)
Posts: 1,904
Joined: Jan 2015
Reputation:
127
ksooo
Team-Kodi Developer
Posts: 1,904
2018-09-06, 18:23
(This post was last modified: 2018-09-06, 18:26 by ksooo.)
How can I reproduce the issue? Is there a certain skin I can use and if so, where do I get it from and what steps to take to reproduce?
EDIT: Looking at your code snippet, this is python, right? I have zero knowledge how Kodis's python binding is working. I thought you have a skinning problem...
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
it's a python call to grab a gui info label. which you refactored, no ? there is likely nothing python to it as such.
Posts: 1,904
Joined: Jan 2015
Reputation:
127
ksooo
Team-Kodi Developer
Posts: 1,904
Tell me how to reproduce, please. I need step by step instructions or a test script or whatever does the job to get it reproducible. Dropping a single line of python code does not work for me, sorry.
Posts: 49
Joined: May 2018
Reputation:
7
2018-09-07, 12:02
(This post was last modified: 2018-09-07, 12:07 by lorkadiscovery.)
I suppose if you know how to skin it would be as simple as using the listitem command to grab any number from a listing.
So if you went to My Movies (Default Estuary Skin)
ListItem('10').FolderPath should return the listitem path of the entry in position 10 of My Movies.
Does this make sense?
Im unsure how I could get you to recreate with python but the issue would still be present via a skin.
If you need more information or if i need to think of a way to reproduce that you could use please let me know.
Posts: 1,904
Joined: Jan 2015
Reputation:
127
ksooo
Team-Kodi Developer
Posts: 1,904
Please post a diff for estuary along with steps how to reproduce.
Posts: 1,904
Joined: Jan 2015
Reputation:
127
ksooo
Team-Kodi Developer
Posts: 1,904
That's what I expected tbh. Not saying my guiinfo refactoring is unrelated to that issue, but it seems python somehow needs to be involved to trigger the bug. Maybe it's something related to how python is using guiinfomanager. Just guessing.
Posts: 49
Joined: May 2018
Reputation:
7
Thanks all for testing, what I found after doing some digging yesterday is that the issue is only present if
item.setProperty('IsPlayable', 'true')
is set in the listitem.
If isplayable is true the ListItem(NUM).FolderPath prints nothings, if isplayable is not set the print displays the path correctly as expected.