2011-09-11, 11:53
I noticed a difference between the AudioLibrary and VideoLibrary namespaces with a fresh XBMC instance without any database for video or audio. VideoLibrary.GetTVShows as well as GetSeasons and GetEpisodes nicely return a result object flagging there are no TV shows. However, AudioLibrary.GetArtists or GetAlbums, GetSongs return a result object being "null".
Is this deliberate? Maybe nobody noticed it, so I just wanted to share my experience. It's of course easy to guard against, but I thought maybe XBMC's JSON-RPC interface would or should always return a non-null result object for valid requests.
Thanks
Is this deliberate? Maybe nobody noticed it, so I just wanted to share my experience. It's of course easy to guard against, but I thought maybe XBMC's JSON-RPC interface would or should always return a non-null result object for valid requests.
Thanks