diff options
| author | Niels van Velzen <nielsvanvelzen@users.noreply.github.com> | 2024-03-31 22:48:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-31 14:48:56 -0600 |
| commit | d9fe900952db446ded5ebdb937bd9e242b4a96de (patch) | |
| tree | bc1556f8c5e237fe0af9db07732c7af6b554393a /Emby.Server.Implementations/Library/LibraryManager.cs | |
| parent | 84b933d8355c718d3674f3b7371a190849071970 (diff) | |
Fix FindExtras overwriting current extra type (#11260)
Diffstat (limited to 'Emby.Server.Implementations/Library/LibraryManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Library/LibraryManager.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.cs index a2abafd2a..0c854bdb7 100644 --- a/Emby.Server.Implementations/Library/LibraryManager.cs +++ b/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; |
