2011-11-13, 19:17
RedsGT Wrote:I'm currently trying to replace some HTTP API code with JSON-RPC. Right now the code uses 'QueryVideoDatabase' to get the directory(s) of a tv show based on it's title and then used 'XBMC.updatelibrary(video, <directory>)' to initiate a library update based solely on that directory(s).
1. I've been trying to replicate this using ' VideoLibrary.GetTVShows', the problem being there is no way currently to filter the shows based on the various 'Video.Fields.TVShow' fields. Is asking for filter capability on this method a worthwhile feature request, or is there a better way to go about doing this (like just filtering client side)?
2. With 'XBMC.updatelibrary' from the HTTP API, I could update a single shows directory(s). Would it be a worthwhile feature request to ask for this functionality to be built into 'VideoLibrary.Scan'?
IIRC there are feature requests for both of your points. Currently you'll have to do client side filtering but we are planning to provide filtering based on the SmartPlaylist filtering. The second isn't possible right now at all.