• 1
  • 159
  • 160
  • 161(current)
  • 162
  • 163
  • 226
JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC
Yes I know that Smile

But my problem is the opposite finding the media type from an arbitrary item.

The user add a path to browse, or adds a path to favorite and we don't know the kind of media so not possible to add it to playlist Smile
Reply
Hello!
I have a question about method Files.GetDirectory.

This works and returns all files in directory
Code:
{"jsonrpc":"2.0","method":"Files.GetDirectory","params":{"directory":"/home/user/Pictures/","media":"pictures"},"id":"id00"}

And if i want to get only files from 0 to 10
Code:
{"jsonrpc":"2.0","method":"Files.GetDirectory","params":{"directory":"/home/user/Pictures","media":"pictures","limits":{"start":0,"end":10}},"id":"id00"}

i get:
Code:
{"error":{"code":-32602,"data":{"message":"Too many parameters","method":"Files.GetDirectory","stack":{"name":"media","type":"string"}},"message":"Invalid params."},"id":"id00","jsonrpc":"2.0"}

Does it supports "limits" and "sort" parameters?

Reply
(2012-10-09, 08:14)Bara Wrote: Does it supports "limits" and "sort" parameters?

As you can see in the wiki (http://wiki.xbmc.org/index.php?title=JSO...tDirectory) there's no "limits" parameter only a "sort" parameter.
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.
Reply
That would make a good Feature request to allow dynamic loading without out of memory for big directories Smile
Reply
(2012-10-09, 08:20)Montellese Wrote:
(2012-10-09, 08:14)Bara Wrote: Does it supports "limits" and "sort" parameters?

As you can see in the wiki (http://wiki.xbmc.org/index.php?title=JSO...tDirectory) there's no "limits" parameter only a "sort" parameter.

Are there any plans to support limits in Files.GetDirectory?
Reply
Hi,

Sorry but since commit 8b9f91d3f765f370fd479ac64229a9be805f2dd1 (https://github.com/xbmc/xbmc/pull/1480), I have some problems to get thumbnail or fanart with JSON (can't get any images for musics and videos...). I use exactly same command methods, with same computer(on windows 7), same db, same mysql, same library,....

just before commit 8b9f91d3f765f370fd479ac64229a9be805f2dd1: http://xbmclogs.com/show.php?id=10314
with commit 8b9f91d3f765f370fd479ac64229a9be805f2dd1 : http://xbmclogs.com/show.php?id=10315

thx
Reply
This is because you're still using the /vfs handler to get the images.

You should have switched to /image to get images as stated a few weeks / month before.

But I suspect that there's still a problem with the new vfs security things since :
webserver: request received for /vfs/image://smb%253a%252f%252fDISKSTATION%252fvideo%252fCloclo.2012.FRENCH.1080p.BluRay.x264-ULSHD%252fulshd-cloclo.1080p.tbn

seems to be inside one of your source, perhaps the smb:// path or image:// check is not correctly handled and need some special attention like rar
Reply
Yup I didn't consider image://. These should be handled special as they always point to an image that has been cached by XBMC and is therefore save to access.
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.
Reply
As an FIY I pushed a commit that should improve retrieval of properties for lists with lots of items. The old implementation was a bit stupid and ran through all the properties twice for every item. Now every property is only handled once which should speed things up a bit.
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.
Reply
Oh Thx working but only if I map network, no with smb protocol inside XBMC.

http://xbmc:@192.168.2.31:8080/image/ima....1080p.tbn
(/image/image://Z)

working but no :

http://xbmc:@192.168.2.31:8080/image/ima....1080p.tbn

(/image/image://smb)

Reply
Which path do you receive from XBMC through JSON-RPC? I don't have samba so can't test right now but the idea is that you url-encode whatever you get from JSON-RPC and append it to /image/ and make your HTTP request.
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.
Reply
humm sorry I restart scan and it's working now!!

Thx all for your nice help!!!
Reply
Wednesday, October 10th 2012:
Commits: 27639ee9759381732b9c
  • added Player.OnPropertyChanged notification whenever "shuffled", "repeat" or "partymode" changes for an active player
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.
Reply
Star!
Image
AWXi - Ajax web interface. Wiki
Reply
To keep things tidy. Would it be a major hassle to change { "type": "shuffle/repeat" } to { "method": "Player.Shuffle/Repeat" }? And possibly move "value" to params->data? I appreciate you did this last minute Smile
Image
AWXi - Ajax web interface. Wiki
Reply
  • 1
  • 159
  • 160
  • 161(current)
  • 162
  • 163
  • 226

Logout Mark Read Team Forum Stats Members Help
JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC8