Updated for the new XBMC JSON API.