mrkipling/maraschino — pull request #210 by N3MIS15 (2012-09-08 14:21:12+00:00)
Title: XBMC Handler and Frodo fixes

I know you weren't too keen on replacing jsonrpclib for XBMC, but i think its the best way to have better and more universal/consistent error handling. There are many advantages and no disadvantages that i have found as of yet.

Anyways here are the changes:

Moved all the XBMC related tools to /maraschino/xbmc.py
Creates XBMC instance on boot and server change so there is no more setting the server every time we need to make a call to XBMC. The instance is now maraschino.XBMC.
Get XBMC version on the first successful call to XBMC
Added the ability to include dev=True in the method params, this will output the method, request params and response to console.
Added logging built into the XBMC class that will return much more useful debug logs.
The legacy server settings check is only done on program start, not page load.
Added XBMC version checking via maraschino.XBMC_VERSION
Added fixes for frodo (only triggered if maraschino.XBMC_VERSION is > 11)

questions/criticisms welcome as always :)