2014-02-16, 17:13
(2014-02-13, 11:05)mikebzh44 Wrote: Sorry, wrong Copy / Paste from skin widget python code :SWhat version of XBMC are you using? The "limits" parameter for Files.GetDirectory is only available in recent gotham nightly builds but not in Frodo.
But error still occur :
Code:10:07:36 T:4308 DEBUG: JSONRPC: Incoming request: {"jsonrpc": "2.0", "id": 1, "method": "Files.GetDirectory", "params": {"directory": "special://profile/playlists/video/Action.xsp", "media": "video", "properties": ["title"], "limits": {"end": 10}, "sort": {"order": "descending", "method": "dateadded"}}}
10:07:36 T:4308 DEBUG: JSONRPC: Calling files.getdirectory
10:07:37 T:4308 DEBUG: Random and Last items script: [RandomAndLastItems] JSON RESULT {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Invalid params.', u'code': -32602, u'data': {u'message': u'Too many parameters', u'method': u'Files.GetDirectory', u'stack': {u'property': {u'type': u'string', u'name': u'order'}, u'type': u'object', u'name': u'sort'}}}}
And Files.GetDirectory does not support limits parameter ?
http://wiki.xbmc.org/index.php?title=JSO...tDirectory
(2014-02-13, 14:58)jez500 Wrote: 1. Closing osd dialogs - now and again I may trigger something with the api that causes a dialog to open on screen, most common is "Failed playback" due to a library entry with a path to a invalid file, but also input dialogs (eg. search). When these are open, I seems to prevent any other api calls getting through and I need to go over to the host running xbmc and physically click the close button. So my question basically is, does anyone know of ways to avoid this? eg. allow the api to still do calls while a dialog is open, with search boxes I can send text with Input.SendText and it closes them but, error dialogs seem to kill at least, most commands.That's a known issue. Ideally most JSON-RPC actions would not trigger any GUI dialogs at all. Furthermore JSON-RPC should still be usable while dialogs are open but at least all Player methods don't work anymore. Have you tried using Input.ExecuteAction with the "back" action?
(2014-02-13, 14:58)jez500 Wrote: 2. Callback on input osd dialogs opening - I have only really tested this with the soundcloud addon so the issue may lay there, however just in case... When I navigate to a path using Files.GetDirectory, if that causes an input dialog to open on screen, the api returns success prior to the dialog opening, meaning I cannot reliably chain events eg. Files.GetDirectory > Input.SendText (leaving me back at issue 1)Yes this is a problem on how XBMC works internally. It's great for GUI stuff but not for JSON-RPC but all code was written for GUI stuff so JSON-RPC currently runs into these problems.
(2014-02-13, 14:58)jez500 Wrote: 3. Persistent storage - I am pretty sure this is a feature request however I might have just missed it too. I would love a way to save/retrieve some data on the host via the api. something like storage System.setVariable {key: value} and System.getVariable {key}. I have heaps of cool ideas if such a thing existed (eg. web ui settings, who played that song and many more ). Any suggestions?I don't understand what exactly you are after.
(2014-02-13, 14:58)jez500 Wrote: 4. "file" property missing when calling AudioLibrary.GetSongDetails in frodo (12.3 stable) - Pretty sure this is a bug and have seen it briefly mentioned in other threads, It works in gotham and also retrieving a songs via AudioLibrary.GetSongs but not when grabbing just one song with AudioLibrary.GetSongDetails, I have found dirty workarounds but it comes at a performance hit. Any plans on fixing this or should I just wait for gotham stable?There will be no more fixes for Frodo. You'll have to wait for the next stable release (i.e. Gotham).
(2014-02-13, 22:39)claymic Wrote: Hi,You'll have to get the lastplayed episode of a tvshow and then determine the season from there (which is just a property of the episode).
Is there a way to get the lastplayed Season of a TvShow ? I saw that i can get the lastplayed for Tv Shows and Episodes, but not for Seasons. Any tip ?
Thanks in advance.
Clayton