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

Make sure config value is used when showing bubble #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

1nu
Copy link

@1nu 1nu commented Feb 25, 2025

Fixes #76 and #55

@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.

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

  2. 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.

@masyk
Copy link
Collaborator

masyk commented Feb 27, 2025

@ekleop will have some time to merge and recheck after March 3rd. The update to kodi repo should take about 2-8 weeks to be approved.

@masyk
Copy link
Collaborator

masyk commented Feb 28, 2025

/gemini review

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

The pull request addresses issues #76 and #55 by ensuring that the configuration value for the bubble notification is correctly interpreted as a boolean. The change involves converting the setting value to lowercase and checking if it's either 'true' or '1'. This approach enhances the reliability of the bubble notification feature.

Summary of Findings

Merge Readiness

The code change appears to correctly address the issue. The use of .lower() and checking against both 'true' and '1' makes the condition more robust. Since there are no comments, I would recommend that this be merged. I am unable to directly approve the pull request, and users should have others review and approve this code before merging.

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 this pull request may close these issues.

Always showing bubble no matter the value in config
3 participants