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

[Issue]: Search in webUI does not trim leading or trailing spaces, returning no results; Does not search year #11868

Open
1 task done
michaelkrieger opened this issue May 28, 2024 · 2 comments · May be fixed by #11896
Open
1 task done
Labels
bug Something isn't working

Comments

@michaelkrieger
Copy link

Please describe your bug

When entering a search term in the search box, ie: " Sleeping Beauty" and "Sleeping Beauty " result in no search results. Only when removing the trailing and leading space do we get the result "Sleeping Beauty". These should be trimmed for leading whitespace (spaces, tabs, etc) prior to being searched. This occurs for searching people or in titles.

Aside: Also noticed, "Sleeping Beauty 1959" and "Sleeping Beauty (1959)" will also return no results. I expected this to work in my testing and was surprised when it didn't.

Reproduction Steps

  1. Click on the magnifying glass in the WebUI
  2. Enter a movie name with a leading or trailing space
  3. See no results
  4. Remove the space to find the correct results.

Jellyfin Version

10.9.0

if other:

No response

Environment

- OS: Debian Linux 12
- Linux Kernel: 6.2.x
- Virtualization: Docker
- Clients: WebUI
- Browser: Chrome
- FFmpeg Version: N/A
- Playback Method: N/A
- Hardware Acceleration: N/A
- GPU Model: N/A
- Plugins: N/A
- Reverse Proxy: Traefik
- Base URL: /
- Networking: Docker IPv4
- Storage: Local ZFS

Jellyfin logs

N/A

FFmpeg logs

N/A

Please attach any browser or client logs here

N/A

Please attach any screenshots here

N/A

Code of Conduct

  • I agree to follow this project's Code of Conduct
@michaelkrieger michaelkrieger added the bug Something isn't working label May 28, 2024
@michaelkrieger michaelkrieger changed the title [Issue]: Search in webUI does not trim leading or trailing spaces, returning no results; Only searches titles. [Issue]: Search in webUI does not trim leading or trailing spaces, returning no results; Does not search year May 28, 2024
@jellyfin-bot
Copy link
Contributor

Hi, it seems like your issue report has the following item(s) that need to be addressed:

  • You have not provided the ffmpeg log unaltered from the server. Please provide a valid ffmpeg log.

This is an automated message, currently under testing. Please file an issue here if you encounter any problems.

@kandykarter
Copy link

To add on to this, I don't think it handles punctuation well. Today I searched "Paris Texas" and got no results because the actual name has a comma between the two words, "Paris, Texas". Seems less-than-intuitive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

3 participants