Right now I am running the following query against the Video database (I am using the QueryVideoDatabase command in the web API to make the call):
select c09 from movie where c09="' + imdb + '"
where imdb is the movie's IMDB id
to find whether a given movie is already in the XBMC movie database. I want to limit the results to movies that I have of a certain quality. I know that XBMC shows "SD, 1080, etc" when playing a movie indicating the file's quality. Is the info saved in the database somewhere?
Querying for Movies and Filtering on File Quality
cancan101
Member+ Posts: 46 Joined: Sep 2010 Reputation: 0 |
2011-12-19 15:42
Post: #1
|
| find quote |
Montellese
Team-XBMC Developer Joined: Jan 2009 Reputation: 20 Location: Switzerland |
2011-12-19 15:58
Post: #2
Yes it's in the streamdetails table. You'll have to come up with some JOIN query on movie, streamdetails and movie which has an ON condition of streamdetails.idFile = movie.idFile and filter by iStreamType = 0 (video stream) and use iVideoWidth for your condition on SD/HD/whatever.
Although something like this is not possible yet with JSON-RPC I'd discourage the use of HTTP API as it will be removed after Eden has been released and some missing functionality has been added to JSON-RPC. 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 |
cancan101
Member+ Posts: 46 Joined: Sep 2010 Reputation: 0 |
2011-12-19 17:57
Post: #3
Is there anyway to tell if the video us 1080p vs 1080i? Does XBMC even show this when playing the file?
|
| find quote |

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