New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes to settings do not take effect immediately #560
Comments
This is not fixed yet. When enabling and disabling I think the pluginsource entrypoint should be restructured according to Kodi's recommendations:
I suspect declaring |
@dagwieers I found out that removing the global |
So one solution might be that:
The drawback here is that we add quite some complexity for something that really ought to be something simple. |
Another more simple solution is to instantiate Addon from addon_entry.py so that it is at least reread once every invocation. Update: In fact, the routing module also instantiates Addon twice, so this could in fact be the best solution for all Kodi add-ons. We instantiate Addon from addon_entry, pass it to addon.run() which would pass it to Plugin(), and then we could call plugin.addon to access it. |
I tried this, declare |
The irony is that the easiest solution is to disable reuselanguageinvoker. I don't see any noticeable performance degradation because we designed the add-on in such a way that it is pretty lean already. Only import the stuff we really need. |
Describe the bug
Most of the changes to the settings require you to restart the add-on (which means first starting another add-on, then return to VRT NU). This is not very user-friendly (i.e. most people would think restarting the add-on would do the trick).
So it's safe to say that people would consider this a bug (changing settings doesn't have any effect). And especially for logging this is problematic, if you enable debug-logging in Kodi, our add-on wouldn't act on it.
We need to address this before releasing v2.3.0.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
We need to rethink this. Either reevaluate config-options on use (slower) or reevaluate settings when changes are detected.
Additional context
The text was updated successfully, but these errors were encountered: