Skip to content

fix(ranobedb): fix search failing for titles with special characters#2501

Open
Ari-03 wants to merge 2 commits intobooklore-app:developfrom
Ari-03:ranobedb-search-improvements
Open

fix(ranobedb): fix search failing for titles with special characters#2501
Ari-03 wants to merge 2 commits intobooklore-app:developfrom
Ari-03:ranobedb-search-improvements

Conversation

@Ari-03
Copy link

@Ari-03 Ari-03 commented Jan 26, 2026

Summary

  • URL-encode search terms to handle special characters (e.g., & in "Wolf & Parchment")
  • Remove duplicate query param (RanobeDB API only uses q)
  • Remove English language filter (rl=en) that excluded Japanese-only books
    Testing
    Verified searches now work for:
  • "Wolf & Parchment" (special char issue)
  • "Maoyuu Maou Yuusha" (no English release)

Ari-03 and others added 2 commits January 23, 2026 13:49
- Add .encode() to properly URL-encode special characters like & in search terms
- Remove duplicate 'query' parameter (only 'q' is valid for RanobeDB API)
- Remove English language filter (rl=en) that excluded Japanese-only books

Fixes searches for titles like 'Wolf & Parchment' (& was breaking URL parsing)
and 'Maoyuu Maou Yuusha' (filtered out due to no English release).
Copy link
Collaborator

@acx10 acx10 left a comment

Choose a reason for hiding this comment

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

@Ari-03 Could you please add unit tests to verify that everything is functioning correctly?

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.

2 participants