mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-23 23:20:51 +01:00
API: /Users/{UserID}/Items with NameStartsWith numeric parameter returns no results #752
Labels
No labels
area:database
awaiting-feedback
backend
blocked
breaking change: web api
bug
build
ci
confirmed
discussion needed
dotnet future
downstream
duplicate
EFjellyfin.db
enhancement
feature
future
github-actions
good first issue
hdr
help wanted
invalid
investigation
librarydb
live-tv
lyrics
media playback
music
needs testing
nuget
performance
platform
pull-request
question
regression
release critical
requires-web
roadmap
security
security
stale
support
syncplay
ui & ux
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: starred/jellyfin#752
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
Expected behavior
One movie item should be returned representing '12 Years a Slave'.
System (please complete the following information):
@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.
@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.
@SenorSmartyPants commented on GitHub (Sep 26, 2019):
No stale please.
@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.
@SenorSmartyPants commented on GitHub (Mar 10, 2021):
Any updates on this?
@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.
@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.
@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.
@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.