Posts: 794
Joined: Apr 2011
Reputation:
16
Mizaki
Posting Freak
Posts: 794
I've not looked at it in a really long time but "GetDirectory" will tell you the "type": movie, song etc. if that helps.
Posts: 5,184
Joined: Jan 2009
Reputation:
131
I'm not sure I understand the question.
Do you want to get the results of a smartplaylist through JSON-RPC? Files.GetDirectory will accept a path to a smartplaylist and then tell you its content (with all the properties etc.). And if you specify in your request that you are looking for videos (or music) it will also tell you what type and database ID it has.
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.
Posts: 3,077
Joined: Jun 2009
Never took enough time to investigate but lot's of users have also reported that player.open on smartplaylist (or files.getdirectory) does not respect the order or random settings on those smartplaylists
Posts: 5,952
Joined: Sep 2008
Reputation:
201
Koying
Retired Team-Kodi Member
Posts: 5,952
Haven't make myself clear.
What I'd like is to be able to retrieve the videodb fields from a smartplaylist.
The ultimate goal would be to add to skin.widget the possibility to specify a smartplaylist in addition to "random" and "recent" as to be able to have full control on what is displayed.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
It's not doing it via JSON-RPC (thus isn't answering your question!) but with the directory provider stuff, you can just pop the smartplaylist you want as the URL for the container content and it'll take care of it. This is what the skin-widgets of the future will be anyway.
Posts: 5,952
Joined: Sep 2008
Reputation:
201
Koying
Retired Team-Kodi Member
Posts: 5,952
Well, json-rpc is not a requirement, obviously ;-)
I figured out this was how I should do it, but if there is a direct Python path, it's even better...
Posts: 5,184
Joined: Jan 2009
Reputation:
131
I thought skin.widget is using JSON-RPC (but I never looked at the code).
@Koying: the new directory provider stuff doesn't even necessarily require python. You can just specify a path in the skin XML and XBMC will load the items from that path.
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.