Skip to content
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

Always showing bubble no matter the value in config #76

Open
weekendsource opened this issue Feb 7, 2025 · 3 comments · May be fixed by #77
Open

Always showing bubble no matter the value in config #76

weekendsource opened this issue Feb 7, 2025 · 3 comments · May be fixed by #77

Comments

@weekendsource
Copy link

bool of nonempty string is always true so

https://github.com/SIMKL/script.simkl/blame/46c059b54df258ee42b80e455194f6fca5a83783/resources/lib/engine.py#L165

elif success and bool(get_setting("bubble")):

should be something like:

elif success and get_setting("bubble") == "true":

@ekleop
Copy link
Collaborator

ekleop commented Feb 8, 2025

I'll update it in next push, thanks

@je19921
Copy link

je19921 commented Feb 25, 2025

I'll update it in next push, thanks

This exact issue was flagged in 2019 and you had the exact same reply of i'll fix next update.. same response in 2020... how hard is it to fix this, it's been 6 years lol.

@1nu 1nu linked a pull request Feb 25, 2025 that will close this issue
@je19921
Copy link

je19921 commented Feb 27, 2025

Here is the solution guys, less work for you... and no offense but since this is an issue since 2019 I might as well do it myself.

Go to the file Engine.py. Located inside data/org.xbmc.kodi/files/.kodi/addons/script.simkl/ressources/lib

In the file, change this section:

elif success and bool(get_setting("bubble")): self._show_bubble(self._item) break
to
elif success and get_setting("bubble") == 'true': self._show_bubble(self._item) break

Now the bool argument will correctly identify false in your user settings. The issue was the first implementation always considered result as true except empty arguments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants