소스 검색

Fix FindExtras overwriting current extra type (#11260)

Niels van Velzen 1 년 전
부모
커밋
d9fe900952
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      Emby.Server.Implementations/Library/LibraryManager.cs

+ 6 - 1
Emby.Server.Implementations/Library/LibraryManager.cs

@@ -2677,7 +2677,12 @@ namespace Emby.Server.Implementations.Library
                     extra = itemById;
                 }
 
-                extra.ExtraType = extraType;
+                // Only update extra type if it is more specific then the currently known extra type
+                if (extra.ExtraType is null or ExtraType.Unknown || extraType != ExtraType.Unknown)
+                {
+                    extra.ExtraType = extraType;
+                }
+
                 extra.ParentId = Guid.Empty;
                 extra.OwnerId = owner.Id;
                 return extra;