Get ListItems from directory?
#1
Im hoping to figure out if I can get a list of all the ListItem objects in a directory, through Python code.

I've figured out that I can retrieve a JSON response with the various information about each item, using the following code, for example:

python:
xbmc.executeJSONRPC('{"jsonrpc":"2.0","id":1,"method":"Files.GetDirectory","params":{{"directory":"video://movies/titles","media":"video"}}')

But using this approach, I need to set each of the items InfoLabels, art, and other metadata manually, which is far less general of a solution than I'd like.

Is there any way to retrieve the actual ListItems themselves?
Reply

Logout Mark Read Team Forum Stats Members Help
Get ListItems from directory?0