aboutsummaryrefslogtreecommitdiff
path: root/src/Jellyfin.MediaEncoding.Keyframes
diff options
context:
space:
mode:
authorPiotr Niełacny <piotr.nielacny@gmail.com>2026-03-10 16:53:12 +0100
committerPiotr Niełacny <piotr.nielacny@gmail.com>2026-07-29 10:41:41 +0200
commit9693f11fe5507a005fc7fcd0e30ef918ab1f214d (patch)
treead3eba15cc221d3e9d0fc531b4e82e2fc6b40244 /src/Jellyfin.MediaEncoding.Keyframes
parentafb716566d04102fa6c8e1b12977d175db301081 (diff)
Fix NameStartsWith filter not matching numeric item names
The NameStartsWith, NameStartsWithOrGreater, and NameLessThan API filters compare user input against the internal SortName, which zero-pads numbers to 10 digits for natural sorting. This caused numeric filters like NameStartsWith=1 to fail because "1" doesn't match the padded sort name "0000000012...". Normalize filter input through ModifySortChunks before comparison so that padding is applied consistently. For NameStartsWith, add a TrimStart('0') fallback so that numeric prefixes like "1" correctly match sort names such as "0000000012 years a slave". Add NormalizeSortNameFilter helper on BaseItem and make ModifySortChunks public. Add unit tests covering numeric, alphabetic, and mixed prefix matching for all three filter types. Fixes #1470
Diffstat (limited to 'src/Jellyfin.MediaEncoding.Keyframes')
0 files changed, 0 insertions, 0 deletions