•   
  • 1
  • 112
  • 113
  • 114(current)
  • 115
  • 116
  • 226
  •   
JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC
Sounds perfect.

I'll keep any eye on the Introspect Nerd
Reply
Hehe usually I announce all (semi-)major additions/changes in here. But that stuff isn't going to be available until after Eden has been released.
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
I'm trying to get a list of all playlists, including user created ones:

Code:
{"jsonrpc": "2.0", "method": "Playlist.GetPlaylists", "id": "Playlist.GetPlaylists"}

But even though I have a user created .m3u playlist, I only get:
Code:
{"id":"Playlist.GetPlaylists","jsonrpc":"2.0","result":[{"playlistid":0,"type":"audio"},{"playlistid":1,"type":"video"},{"playlistid":2,"type":"picture"}]}

Is there another request I should be sending to see the custom playlists, as I seem to only get the system defined ones?

Thanks,
Matt.
Reply
Hi All,

Anyone know how to request a list of movies in the library that match a genreid?

Thanks,
Matt.
Reply
doozer Wrote:I'm trying to get a list of all playlists, including user created ones:

Code:
{"jsonrpc": "2.0", "method": "Playlist.GetPlaylists", "id": "Playlist.GetPlaylists"}

But even though I have a user created .m3u playlist, I only get:
Code:
{"id":"Playlist.GetPlaylists","jsonrpc":"2.0","result":[{"playlistid":0,"type":"audio"},{"playlistid":1,"type":"video"},{"playlistid":2,"type":"picture"}]}

Is there another request I should be sending to see the custom playlists, as I seem to only get the system defined ones?

Thanks,
Matt.
Hello.

I have post the same question few days ago Wink

Here is the response of Montellese : http://forum.xbmc.org/showpost.php?p=101...count=1680
Sorry for my english, but, you know, I'm French so ...

Main HTPC : Odroid-C2 running CoreELEC with Titan Bingie
Secondary HTPC : Freebox Mini 4K running Android TV with Titan Bingie
Reply
mikebzh44 Wrote:Hello.

I have post the same question few days ago Wink

Here is the response of Montellese : http://forum.xbmc.org/showpost.php?p=101...count=1680

Thanks for the heads up. Crazy searching for answers in 170 pages of replies!
Reply
Hello.

I'm using this request :

Code:
json_query = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": {"directory": "special://profile/playlists/video/cartoons.xsp", "media": "video", "properties": ["originaltitle"]}, "id": 1}')

But I have a warning in the log :

Code:
WARNING: CUtil::GetMatchingSource... no matching source found for [special://profile/playlists/video/cartoons.xsp]

But request's result is OK.

Is it due to Beta 3 ?
Sorry for my english, but, you know, I'm French so ...

Main HTPC : Odroid-C2 running CoreELEC with Titan Bingie
Secondary HTPC : Freebox Mini 4K running Android TV with Titan Bingie
Reply
That warning might be because I added checks so you can't access locked sources through JSON-RPC until you unlocked them in XBMC GUI. For that I added a call to CUtil::GetMatchingSource(). Just ignore the warning. Will see if I can get rid of it for JSON-RPC.
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
Thanks.
Sorry for my english, but, you know, I'm French so ...

Main HTPC : Odroid-C2 running CoreELEC with Titan Bingie
Secondary HTPC : Freebox Mini 4K running Android TV with Titan Bingie
Reply
An other question.

If I want to count the number of movies watched and unwatched in a specific playlist, I have to :
- use Files.GetDirectory to retrieve all the movies from the playlist
- for each movie, I have to get playcount with VideoLibrary.GetMovieDetails
- if playcount = 0 so movie is unwatched, otherwise is watched

There is no way to put a filter on the playlist to get only unwatched movies or watched movies ?

Sorry if it's a silly question Sad
Sorry for my english, but, you know, I'm French so ...

Main HTPC : Odroid-C2 running CoreELEC with Titan Bingie
Secondary HTPC : Freebox Mini 4K running Android TV with Titan Bingie
Reply
No there is no filtering (yet, but for Files.GetDirectory there probably never will be because as the method name says it operates on files and not on a database). But you don't need the extra call to VideoLibrary.GetMovieDetails, you can retrieve the "playcount" property directly from Files.GetDirectory.
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
On more time "Thank for the tip" !

I haven't notice that resume and playcount were inherited properties.
Sorry for my english, but, you know, I'm French so ...

Main HTPC : Odroid-C2 running CoreELEC with Titan Bingie
Secondary HTPC : Freebox Mini 4K running Android TV with Titan Bingie
Reply
Hello,
would it be possible to add Player.Play and Player.Pause methods (in addition to Player.PlayPause) for "discrete" playback control (so clients don't have to "decide" depending on the player status)? If it makes any sense.

Thanks
(I hope such a request belongs here)
Reply
Such a feature request has been provided a week or two ago at http://trac.xbmc.org/ticket/12564. See the Trac ticket for information on how it will probably be implemented.
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
About this ticket Smile

I've got a new need that comes with it, it was already discussed before i think but can't remember when, and get into this new need Sad

Do you think it's possible for some of the player operations to add the support of PlayerId -1 that will pause / play whatever is currently running, even if music and pictures are running ?

See : http://forum.xbmc.org/showthread.php?p=1...ost1018502 for more details of why it may be needed.

One solution actually since playerid are limited to 1 2 3 is to send a batch of the 3 commands, but perhaps the -1 would be more coder friendly.
Reply
  •   
  • 1
  • 112
  • 113
  • 114(current)
  • 115
  • 116
  • 226
  •   



Logout Mark Read Team Forum Stats Members Help
JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC8
This forum uses Lukasz Tkacz MyBB addons.