diff options
| author | dkanada <dkanada@users.noreply.github.com> | 2026-04-13 13:50:04 +0900 |
|---|---|---|
| committer | dkanada <dkanada@users.noreply.github.com> | 2026-04-13 13:50:04 +0900 |
| commit | bb265cd4030e966aec1afbd31eafc0973531c232 (patch) | |
| tree | 70e78224e3c88528a642956fd8ff5022c59c1f12 /Jellyfin.Server.Implementations | |
| parent | 22644075e784ccd71d39a27eae6d1f7434f47a00 (diff) | |
add NameStartsWithOrGreater parameter to Persons endpoint
Diffstat (limited to 'Jellyfin.Server.Implementations')
| -rw-r--r-- | Jellyfin.Server.Implementations/Item/PeopleRepository.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Jellyfin.Server.Implementations/Item/PeopleRepository.cs b/Jellyfin.Server.Implementations/Item/PeopleRepository.cs index adb5e08cf9..7147fbfe7d 100644 --- a/Jellyfin.Server.Implementations/Item/PeopleRepository.cs +++ b/Jellyfin.Server.Implementations/Item/PeopleRepository.cs @@ -245,6 +245,11 @@ public class PeopleRepository(IDbContextFactory<JellyfinDbContext> dbProvider, I query = query.Where(e => e.Name.CompareTo(filter.NameLessThan.ToLowerInvariant()) < 0); } + if (!string.IsNullOrWhiteSpace(filter.NameStartsWithOrGreater)) + { + query = query.Where(e => e.Name.CompareTo(filter.NameStartsWithOrGreater.ToLowerInvariant()) >= 0); + } + return query; } |
