2011-05-13, 20:47
dann0 Wrote:I have mentioned before that i have this issue with AudioLibrary.GetAlbums() but it hasn't generated any interest...I remember having read about this quite a while ago. Could you please check if there already is a bug report about this on trac and if not create a new one so it won't be forgotten? Thank.
The results i have posted suggest the problem lies not with my use of the API or the wrapper but with the JSON-RPC API itself.
_Andy_ Wrote:I want to list all available episodes of a tvshow. Do i need many queries to get all episodes or can i use one query?
What parameter do i need for the field season to query all episodes?
You should really take a look at the output of JSONRPC.Introspect (or look into the wiki page here.
It will tell you that the call to VideoLibrary.GetEpisodes requires the id of the tvshow and the season. So you'll have to call VideoLibrary.GetTVShows first to get the needed tvshowid and then you can call VideoLibrary.GetEpisodes for every season of a particular tvshow. If you don't know the seasons you can retrieve them using VideoLibrary.GetSeasons.