Hello,
With the deprecated HTTP API, we could use QueryVideoDatabase that provides a SQL interface to the XBMC Video Database. There are an equivalent in JSON-RPC ?
Thank's
JSON-RPC : QueryVideoDatabase
DKreeK
Junior Member Posts: 21 Joined: Jan 2010 Reputation: 0 |
2011-05-24 10:25
Post: #1
|
| find quote |
spiff
Grumpy Bastard Developer Joined: Nov 2003 Reputation: 82 |
2011-05-24 10:31
Post: #2
no and not happening.
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. |
| find quote |
DKreeK
Junior Member Posts: 21 Joined: Jan 2010 Reputation: 0 |
2011-05-24 10:38
Post: #3
Ha ok, shame ... I will have to find otherwise.
|
| find quote |
Montellese
Team-XBMC Developer Joined: Jan 2009 Reputation: 20 Location: Switzerland |
2011-05-24 10:57
Post: #4
What exactly are your use cases? If we don't know what you guys are missing we don't know what to add to solve it. Obviously it may be that we don't want to provide certain functionality (like a direct SQL access to the database) but it can't get worse than a "no"
![]() You can already retrieve all kinds of video information over jsonrpc using the methods in the VideoLibrary namespace. Furthermore I have already started working on functionality to update certain values of movies/tvshows/episodes/musicvideos and to remove certain videos from the database. Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. ![]() |
| find quote |
DKreeK
Junior Member Posts: 21 Joined: Jan 2010 Reputation: 0 |
2011-05-24 11:38
Post: #5
I use iViewer to drive my home theater and I want to include the piloting of XBMC in this one. Today, I develop a man in the middle with a web server that directly accessing the SQLite database and do some request. I am about to explore the posibility of using JSON-RPC instead of the webserver.
I have a query that returns me a list of recent series where an unread episode was added. This query is different from the last episode because I've only one entry by series TV. In addition to retrieve informations of the first episode not seen, I retrieve informations about the file, the path (fo episode and show) to recover the series for fanart, clearlogo and thumb. I retrieve also the number of unread episodes of the series. That is my request : Code: SELECT show.idShow "idShow"
(This post was last modified: 2011-05-24 11:54 by DKreeK.)
|
| find quote |
ronie
Team-XBMC Member Joined: Jan 2009 Reputation: 108 |
2011-05-24 14:06
Post: #6
Montellese Wrote:What exactly are your use cases? If we don't know what you guys are missing we don't know what to add to solve it. i've been looking into re-coding the randomitems script, used in many skins, to make use of json instead of http-api. in the process of doing so, i ran into a few things that made me wonder why certain things are implemented the way they are... - VideoLibrary.GetEpisodes : it's required to provide the tvshowid. would it be possible to get all the episodes in my library in one go? similar to AudioLibrary.GetSongs, where it's optional to specify the artistid. - AudioLibrary.GetArtistDetails : not implemented? would be nice to be able to fetch data for a single artist, similar to VideoLibrary.GetTVShowDetails. - VideoLibrary.GetMusicVideos : the runtime value is returned in minutes. imo, it would be more accurate to return it in seconds (if possible). since these are all short videos, seeing a runtime value of just "3" or "4" is not really useful to me. (it might make sense to do the same for movies/episodes) i'm willing to create feature requests on trac if you think any of this makes sense. ;-) Always read the XBMC online-manual, FAQ and search the forum before posting. Do not PM or e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. |
| find quote |
Montellese
Team-XBMC Developer Joined: Jan 2009 Reputation: 20 Location: Switzerland |
2011-05-24 14:41
Post: #7
ronie Wrote:- VideoLibrary.GetEpisodes : it's required to provide the tvshowid.I'd say it should be possible but I'll have to look at the code. Feature request ticket is welcome ![]() ronie Wrote:- AudioLibrary.GetArtistDetails : not implemented?My guess is that at the beginning (in Dharma that is) there was so little information per artist that a GetArtistDetails didn't make sense. But with my jsonrpc re-write I added quite a few extra information for artists so this would certainly make sense (also to be more consistent with the rest). Feature request ticket also welcome ![]() ronie Wrote:- VideoLibrary.GetMusicVideos : the runtime value is returned in minutes.I am wondering about the runtime information for videos ever since I started working with jsonrpc. I can understand that it might make sense to allow users to store a string for their runtime so that everyone can display it the way they like but it's a PITA for jsonrpc as the returned value is basically useless apart from just printing it out somehwere. What you see in the "runtime" field value is simply what I am able to retrieve from the video database and AFAIK there is no more accurate information stored in the video database right now. This would probably require some changes independant of jsonrpc before this could be mapped to jsonrpc. Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. ![]() |
| find quote |
ronie
Team-XBMC Member Joined: Jan 2009 Reputation: 108 |
2011-05-24 15:08
Post: #8
Montellese Wrote:I am wondering about the runtime information for videos ever since I started working with jsonrpc. I can understand that it might make sense to allow users to store a string for their runtime so that everyone can display it the way they like but it's a PITA for jsonrpc as the returned value is basically useless apart from just printing it out somehwere. What you see in the "runtime" field value is simply what I am able to retrieve from the video database and AFAIK there is no more accurate information stored in the video database right now. This would probably require some changes independant of jsonrpc before this could be mapped to jsonrpc. you're probably right. i'll look into fetching the duration value from the streamdetails instead, that one does returns the duration-in-seconds and is exactly what i'm looking for. i'll create those tickets in a bit. cheers! Always read the XBMC online-manual, FAQ and search the forum before posting. Do not PM or e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. |
| find quote |



![[Image: badge.gif]](http://www.ohloh.net/projects/9132/badge.gif)

Search
Help