API: /Users/{UserID}/Items with NameStartsWith numeric parameter returns no results #752

Open
opened 2025-12-21 17:16:43 +01:00 by backuprepo · 9 comments
Owner

Originally created by @SenorSmartyPants on GitHub (Jun 17, 2019).

Describe the bug
I have the movie '12 Years a Slave' in my library. If I use the API to filter to NameStartsWith=1 I get no results. All other alphabetic characters return correct results. I currently have no other numeric named movies or series in my library.

To Reproduce

  1. Go to http://localhost:8096/emby/Users/{USERID}/Items/?NameStartsWith=1&Recursive=true&api_key={APIKEY}
  2. no items returned.

Expected behavior

One movie item should be returned representing '12 Years a Slave'.

System (please complete the following information):

  • OS: Docker
  • Browser: Chrome
  • Jellyfin Version: 10.3.5
  • Reverse proxy: no
Originally created by @SenorSmartyPants on GitHub (Jun 17, 2019). **Describe the bug** I have the movie '12 Years a Slave' in my library. If I use the API to filter to NameStartsWith=1 I get no results. All other alphabetic characters return correct results. I currently have no other numeric named movies or series in my library. **To Reproduce** <!-- Steps to reproduce the behavior: --> 1. Go to http://localhost:8096/emby/Users/{USERID}/Items/?NameStartsWith=1&Recursive=true&api_key={APIKEY} 2. no items returned. **Expected behavior** <!-- A clear and concise description of what you expected to happen. --> One movie item should be returned representing '12 Years a Slave'. **System (please complete the following information):** - OS: Docker - Browser: Chrome - Jellyfin Version: 10.3.5 - Reverse proxy: no
backuprepo added the
confirmed
bug
backend
labels 2025-12-21 17:16:43 +01:00
Author
Owner

@treyf711 commented on GitHub (Jun 19, 2019):

I’ll work this issue. NameStartsWith doesn’t work but SearchTerm does. The request contains the number the whole time but doesn’t return any results.

@treyf711 commented on GitHub (Jun 19, 2019): I’ll work this issue. NameStartsWith doesn’t work but SearchTerm does. The request contains the number the whole time but doesn’t return any results.
Author
Owner

@stale[bot] commented on GitHub (Sep 23, 2019):

Issues go stale after 90d of inactivity. Mark the issue as fresh by adding a comment or commit. Stale issues close after an additional 14d of inactivity. If this issue is safe to close now please do so. If you have any questions you can reach us on Matrix or Social Media.

@stale[bot] commented on GitHub (Sep 23, 2019): Issues go stale after 90d of inactivity. Mark the issue as fresh by adding a comment or commit. Stale issues close after an additional 14d of inactivity. If this issue is safe to close now please do so. If you have any questions you can reach us on [Matrix or Social Media](https://jellyfin.readthedocs.io/en/latest/getting-help/).
Author
Owner

@SenorSmartyPants commented on GitHub (Sep 26, 2019):

No stale please.

@SenorSmartyPants commented on GitHub (Sep 26, 2019): No stale please.
Author
Owner

@stale[bot] commented on GitHub (Jan 24, 2020):

This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.
If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or nightlies, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.
This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.

@stale[bot] commented on GitHub (Jan 24, 2020): This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments. If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or nightlies, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label. This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on [Matrix or Social Media](https://docs.jellyfin.org/general/getting-help.html).
Author
Owner

@SenorSmartyPants commented on GitHub (Mar 10, 2021):

Any updates on this?

@SenorSmartyPants commented on GitHub (Mar 10, 2021): Any updates on this?
Author
Owner

@cvium commented on GitHub (Mar 10, 2021):

This is the cause https://github.com/jellyfin/jellyfin/blob/master/MediaBrowser.Controller/Entities/BaseItem.cs#L740. All numbers are zero padded to length 10. I'm not sure that we can change this without breaking something else.

@cvium commented on GitHub (Mar 10, 2021): This is the cause https://github.com/jellyfin/jellyfin/blob/master/MediaBrowser.Controller/Entities/BaseItem.cs#L740. All numbers are zero padded to length 10. I'm not sure that we can change this without breaking something else.
Author
Owner

@SenorSmartyPants commented on GitHub (Mar 10, 2021):

I tried a NameStartsWith=0 because I thought this would return all the titles that are numeric. It does, but it returns everything, it continues on to the A, B, C, etc titles.

@SenorSmartyPants commented on GitHub (Mar 10, 2021): I tried a NameStartsWith=0 because I thought this would return all the titles that are numeric. It does, but it returns everything, it continues on to the A, B, C, etc titles.
Author
Owner

@izedamo commented on GitHub (May 26, 2021):

@cvium Is there any particular reason for 0 padding the numbers? I would like to fix this issue without breaking anything else.

@izedamo commented on GitHub (May 26, 2021): @cvium Is there any particular reason for 0 padding the numbers? I would like to fix this issue without breaking anything else.
Author
Owner

@cvium commented on GitHub (May 26, 2021):

I didn't write the code so I can only assume that it's a slightly misguided attempt at making natural sorting easier. The real problem is that SortName is the only column used for the search though.

@cvium commented on GitHub (May 26, 2021): I didn't write the code so I can only assume that it's a slightly misguided attempt at making natural sorting easier. The real problem is that SortName is the only column used for the search though.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/jellyfin#752
No description provided.