Posts: 118
Joined: Mar 2012
Reputation:
1
echo
Senior Member
Posts: 118
I believe this is a bug, ListItem.Path, ListItem.FolderPath, and ListItem.FolderName are blank in movieinformation window when opened from a widget on the home screen.
I am using script.skin.helper.widgets if it helps.
Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
perhaps ask in their support thread?
i'm not seeing the issue when i use videodb:// paths or smartplaylists to fill the widgets.
Posts: 8,283
Joined: Jul 2014
2016-11-28, 22:15
(This post was last modified: 2016-11-28, 22:16 by User 224999.)
I think this is true for all non-library content. Or more exactly: for listitems that are generated by a plugin and not a videodb:// or other internal vfs path.
From xbmcplugin you can only set the Listitem's file but not the path, folderpath or foldername even if the originating listitem is actually pulled from the kodi database by json.
Or is there some hidden property I'm not aware of ?
http://mirrors.xbmc.org/docs/python-docs...l#ListItem
@echo: For widgets you should use ListItem.FileNameAndPath instead
Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
if you're using listItem.setPath(), that should be good enough to fill all path related info labels,
kodi will deduct folderpath, foldername etc.. from it.
that being said, i'm working on another addon, and i'm seeing some odd things happening
in the info dialog if i additionally call listItem.setInfo('video', {dbid:xx})
on my end, this breaks all path related infolabels in the video info dialog.
(and it the dialog even fails to open for musicvideos)
perhaps i'm doing something wrong... and this may not even apply to your addon ;-)
Posts: 8,283
Joined: Jul 2014
2016-11-29, 01:31
(This post was last modified: 2016-11-29, 01:33 by User 224999.)
Ah, that's exactly what I'm doing too so I guess we stumbled on a little bug here ?
EDIT: btw I set both dbtype and dbid and so far working great as the infodialog shows all related info
Posts: 8,283
Joined: Jul 2014