rectifyer/script.trakt — pull request #128 by nate1280 (2013-06-08 16:21:39+00:00)
Title: Some fixes and tweaks

Some general fixes and a few tweaks.

Purge the dispatch queue before doing anything, instead of after creating all the classes.

Changed how settings are loaded, they're no longer loaded by default when creating the traktAPI class, which could possibly take a while. They are now a dispatch action, which is the first thing that gets done when the plugin enters its loop.

The addon now caches the settings from trakt.tv, and will refresh them one week (less an hour) from the last time they were cached. And you can also force the settings to load from within the configure screen (need to OK out of the settings for them to save tho).

Made a few changes in the settings dialog as well. Added separators in the debug section, and removed the timer test execute entry, can still be run manually other ways, but will be removing this completely, eventually.

## Changes
- On initial load, purge old queue before doing anything.
- No longer load settings on trakt api creation, variable is there to force it if needed.
- Move load settings to a dispatch action.
- Add load settings to dispatch after purging queue, so its the first thing that gets done when loop is entered.
- Cache settings when they're loaded and refresh them a week (less an hour) from the last time they were cached.
- Add ability to force settings to be reloaded in addon configure screen.
- Rework settings a bit, add separators in debug section.