mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-03 23:36:38 +01:00
Do not return alternate versions by default
This commit is contained in:
@@ -439,6 +439,13 @@ public sealed partial class BaseItemRepository
|
||||
|| (e.TopParentId.HasValue && f.ItemId == e.TopParentId.Value))));
|
||||
}
|
||||
|
||||
// Exclude alternate versions from counts. Alternate versions have
|
||||
// OwnerId set (pointing to their primary) but no ExtraType.
|
||||
if (!filter.IncludeOwnedItems)
|
||||
{
|
||||
baseQuery = baseQuery.Where(e => e.OwnerId == null || e.ExtraType != null);
|
||||
}
|
||||
|
||||
return baseQuery;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user