Skip to content

Fix functional bugs in utilities and scrobbler#703

Merged
razzeee merged 1 commit intomainfrom
fix-functional-bugs-12676173689244080702
Mar 10, 2026
Merged

Fix functional bugs in utilities and scrobbler#703
razzeee merged 1 commit intomainfrom
fix-functional-bugs-12676173689244080702

Conversation

@razzeee
Copy link
Owner

@razzeee razzeee commented Mar 10, 2026

This change fixes several functional bugs and improves code robustness:

  1. In resources/lib/utilities.py, the findEpisodeMatchInList function was incorrectly passing the built-in list type instead of the list_data parameter to a helper function.
  2. In resources/lib/scrobbler.py, a reference to e.message (removed in Python 3) was replaced with str(e).
  3. In resources/lib/scrobbler.py, the __preFetchUserRatings method now checks for the existence of expected keys in the API response before accessing them.
  4. A new test case was added to tests/test_utilities.py to verify the fix and prevent regression of the findEpisodeMatchInList bug.

PR created automatically by Jules for task 12676173689244080702 started by @razzeee

- Fix findEpisodeMatchInList bug in utilities.py where 'list' was used instead of 'list_data'.
- Fix Python 3 compatibility issue in scrobbler.py by replacing 'e.message' with 'str(e)'.
- Improve defensive programming in scrobbler.py to handle missing keys in API results.
- Add regression test for findEpisodeMatchInList.

Co-authored-by: razzeee <5943908+razzeee@users.noreply.github.com>
@google-labs-jules
Copy link
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@razzeee razzeee merged commit c61c0fc into main Mar 10, 2026
2 checks passed
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.

1 participant