mirror of https://github.com/jellyfin/jellyfin.git
Fix FindExtras overwriting current extra type (#11260)
This commit is contained in:
parent
84b933d835
commit
d9fe900952
|
@ -2677,7 +2677,12 @@ namespace Emby.Server.Implementations.Library
|
||||||
extra = itemById;
|
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.ParentId = Guid.Empty;
|
||||||
extra.OwnerId = owner.Id;
|
extra.OwnerId = owner.Id;
|
||||||
return extra;
|
return extra;
|
||||||
|
|
Loading…
Reference in New Issue