2011-06-30, 07:18
Montellese Wrote:That is because you have to use the "videotitle" sort method and not the "title" sort method for videos.
Thanks for the clarification.
Montellese Wrote:That is because you have to use the "videotitle" sort method and not the "title" sort method for videos.
{"id":7,"jsonrpc":"2.0","method":"VideoLibrary.GetMovies","params":{"fields":["title"],"query":{"method":"videotitle","contains":"transformers"}}}
thedroid Wrote:Are there any plans to provide a query option such as
Code:{"id":7,"jsonrpc":"2.0","method":"VideoLibrary.GetMovies","params":{"fields":["title"],"query":{"method":"videotitle","contains":"transformers"}}}
topfs2 Wrote:A ticket for discussing it would be very nice, with good examples about how to achieve it.
thedroid Wrote:A similar ticket is currently in tracker already
[HTML][/HTML]execute SQL statements via JSON-RPC
Should I add to this or create a new ticket?
markus101 Wrote:Based on what I've uncovered now it seems I will need Bleeding Edge/Eden to support what I'm looking for, but I'm hoping to save the extra step of having to get the details for a TvShow, though that is less of a concern.
markus101 Wrote:Hello,
I've just started looking at the JSON interface, I'm currently accessing it via HTTP, which is working great. There is currently one thing I'm looking for, is there a way to get the path of a TV Show with "VideoLibrary.GetTvShows"? I see for Episodes I can get the file, the same for Movies, hoping the same exists for GetTvShows.
I attempted to use, directory, path, folder, dir, to no avail.
Edit: I've been testing against both Dharma (my main setup) and the latest nightly from XBMC.org (20110703-36d20e9), if i pass the field "file" to Dharma, I get a response, without that field, If I pass the same field to the nightly I get an empty string back (progress!).
I also gave GetTvShowDetails a shot with the field "file", method not implemented on Dharma, but on the nightly I get a valid response with the file filled out.
Based on what I've uncovered now it seems I will need Bleeding Edge/Eden to support what I'm looking for, but I'm hoping to save the extra step of having to get the details for a TvShow, though that is less of a concern.
I'd appreciate any help with this.
Cheers,
Markus
Montellese Wrote:That was a bug and I just fixed it so it should be available in the nightly build of tomorrow. Thanks for letting us know.
topfs2 Wrote:Uhm sounds like nightly have a bug then. Tvshows and season cant have a directory coupled with them. Episodes of the same show can be spread out over many sources and directories. Same goes with albums and artists.Hmm, I hadn't thought of that (WHS keeps everything in one place for me), thanks for the information.
{"jsonrpc": "2.0", "method": "JSONRPC.NotifyAll", "params": {"sender": "wsuxbackup", "message": "test"}, "id": "1"}
{
"id": "1",
"jsonrpc": "2.0",
"result": "OK"
}
{"jsonrpc": "2.0", "method": "JSONRPC.SetNotificationFlags", "params": {"player": true, "gui": true, "system": true, "videolibrary": true, "other": true, "audiolibrary": true}, "id": "1"}
{
"error": {
"code": -32602,
"data": {
"message": "Too many parameters",
"method": "JSONRPC.SetNotificationFlags"
},
"message": "Invalid params."
},
"id": "1",
"jsonrpc": "2.0"
}
wsnipex Wrote:I'm trying to send a on screen Notification on latest git build.
Is this the correct way to do it?
Code:{"jsonrpc": "2.0", "method": "JSONRPC.NotifyAll", "params": {"sender": "wsuxbackup", "message": "test"}, "id": "1"}
{
"id": "1",
"jsonrpc": "2.0",
"result": "OK"
}
it returns with OK and I see it in the debug log, but nothing appears on screen
I tought I maybe have to set notification flag, but I cannot get it to work:
Code:{"jsonrpc": "2.0", "method": "JSONRPC.SetNotificationFlags", "params": {"player": true, "gui": true, "system": true, "videolibrary": true, "other": true, "audiolibrary": true}, "id": "1"}
{
"error": {
"code": -32602,
"data": {
"message": "Too many parameters",
"method": "JSONRPC.SetNotificationFlags"
},
"message": "Invalid params."
},
"id": "1",
"jsonrpc": "2.0"
}
{"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": {"directory": "/media/hte_files/Trailers", "media": "video"}, "id": 1}
10:41:30 T:2946804592 M:2621538304 DEBUG: GetMovieId (/media/hte_files/Trailers/127 Hours-trailer.mov), query = select idMovie from movie where idFile=3864
10:41:30 T:2946804592 M:2621538304 DEBUG: GetEpisodeId (/media/hte_files/Trailers/127 Hours-trailer.mov), query = select idEpisode from episode where idFile=3864
10:41:30 T:2946804592 M:2621538304 DEBUG: GetMusicVideoId (/media/hte_files/Trailers/127 Hours-trailer.mov), query = select idMVideo from musicvideo where idFile=3864