2012-04-12, 13:19
(2012-04-11, 19:39)bradvido88 Wrote: On another topic, regarding the JSON-RPC announcements.Yup you are right. If JSON-RPC notices that the currently playing item is not in the database it tries to retrieve things like title etc but it only sends out information that is not empty. It might make sense to add the "file" property if there is no database ID.
Is there any way to find out what file was started when Player.OnPlay is sent? From what I've seen (in Eden Final), it does not give any indication about the file being played.
Sample announcement:
Code:{"method":"Player.OnPlay","params":{"sender":"xbmc","data":{"title":"","player":{"speed":1,"playerid":1},"item":{"type":"movie"}}},"jsonrpc":"2.0"}
(2012-04-11, 19:39)bradvido88 Wrote: Edit:I don't really know how strm files work but if they work similar to m3u files then XBMC does not remember that filename after it has loaded the actually playable files from it.
I am using Player.GetItem to get the file for the currently playing item,which works well enough.
However, if I am playing a .strm (a playlist), is there any way to get the name of the strm/playlist instead of the currently playing file?
I couldn't seem to find a way to get the name of the currently playing playlist
(2012-04-12, 12:27)N3MIS15 Wrote:Ah right now I understand. Well the problem is that you aren't really able to do any of those things in XBMC either. XBMC itself doesn't even allow you to manually add items to a set. As long as that support is missing in XBMC itself it will most likely be missing in JSON-RPC as well.(2012-04-12, 12:06)Montellese Wrote: JSON-RPC doesn't allow you to change anything right now in XBMC's library/database.
I was refering to the FooLibrary.Set pull request. i built a copy of xbmc eden with those changes and I have been able to change everything but movie sets. I can only append them.
(2012-04-12, 12:48)joethefox Wrote:No, JSON-RPC listing/sorting does not care about the GUI setting for irgnoring articles in sorting.(2012-04-12, 12:06)Montellese Wrote: No JSON-RPC does not provide access to any (GUI) settings (yet).Waiting for this, could be feasible to obtain an automatic choice (so the GUI choice) for the ignorearticle if you create the List.Sort object without the ignorearticle property?