浏览代码

Fix duplicate media entries (#14404)

theguymadmax 5 天之前
父节点
当前提交
96590eea85
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Jellyfin.Server.Implementations/Item/BaseItemRepository.cs

+ 1 - 1
Jellyfin.Server.Implementations/Item/BaseItemRepository.cs

@@ -1884,7 +1884,7 @@ public sealed class BaseItemRepository
 
 
         if (!string.IsNullOrWhiteSpace(filter.NameStartsWith))
         if (!string.IsNullOrWhiteSpace(filter.NameStartsWith))
         {
         {
-            baseQuery = baseQuery.Where(e => e.SortName!.StartsWith(filter.NameStartsWith) || e.Name!.StartsWith(filter.NameStartsWith));
+            baseQuery = baseQuery.Where(e => e.SortName!.StartsWith(filter.NameStartsWith));
         }
         }
 
 
         if (!string.IsNullOrWhiteSpace(filter.NameStartsWithOrGreater))
         if (!string.IsNullOrWhiteSpace(filter.NameStartsWithOrGreater))