(2014-07-12, 12:43)Jeroen Wrote: The fanart slideshow is using the Fanart Grabber add-on, and it's loaded during startup. In Startup.xml there's this line:
PHP Code:
<onload condition="System.HasAddon(script.grab.fanart)">RunScript(script.grab.fanart,mode=random,refresh=20)</onload>
Editing the value for refresh should control this. However when trying this out myself this would not work. As described here it should also be possible to adjust it in the addon's settings (settings->add-ons->enabled add-ons->services->Grab Fanart), but I just got a blank settings window.
@robweber: if you're reading along, could you shed a light on this?
I am reading along! Adjusting the refresh=x value in the Startup.xml file should change the refresh rate. I tried this using reFocus from git on my home system and it worked. I changed to 10, 5,and 2 - plus enabled some debug logging to ensure it changed. Everything worked for me.
Regarding the addon settings, I've just removed this from the README. The Fanart Grabber addon used to be a script and now it is a module. Module's aren't normally seen in the addon browser so they have no visible settings to change. If you look in the settings.xml file the settings are still there. I also didn't want any confusion between what the user wanted and what the skin author decided to do. Figured restricting this to within the skin was better.
If this isn't working for you I'd be curious as to why. Any details you can give me of the tests you've done would be great. Also, if you add
PHP Code:
utils.log(utils.getSetting('refresh'),xbmc.LOGDEBUG)
To line 141 of the service.py file you can print the refresh time in debug mode and check. Side note - the default refresh time is 10 so this setting must be working since reFocus extends this to 20 seconds normally.
(2014-07-12, 17:35)Jeroen Wrote: You should be able to disable any add-on through the add-on browser. But since reFocus performs a check related to the add-on I'm not sure how that's going to behave ATM. I don't think I'll be providing options for it as the time saved would be negligible IMO.
I agree, disabling the addon won't really gain you a whole lot. Granted it will still run and set the GUI properties, but the performance hit is extremely small. There was a different thread on this forum (can't find it now) where someone was doing some testing of the CPU usage of various service addons. As I recall most service addons "sleep" around 1000ms between polling checks. At this rate the CPU usage was almost immeasureable. To actually see a performance hit the polling time needed to be decreased to 100ms and even then it added 0.3% CPU usage, per addon. The Fanart Grabber uses a poll time of 500ms. In short - disable if you want but you probably won't notice anything.