Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 :)