mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Fixed tags aggregation
This commit is contained in:
parent
73ddbeb4c1
commit
4959232b27
@ -1588,18 +1588,28 @@ namespace MediaBrowser.Controller.Entities
|
||||
public List<string> GetInheritedTags()
|
||||
{
|
||||
var list = new List<string>();
|
||||
if (Tags is not null)
|
||||
{
|
||||
list.AddRange(Tags);
|
||||
}
|
||||
|
||||
foreach (var parent in GetParents())
|
||||
{
|
||||
if (parent.Tags is not null)
|
||||
{
|
||||
list.AddRange(parent.Tags);
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var folder in LibraryManager.GetCollectionFolders(this))
|
||||
{
|
||||
if (folder.Tags is not null)
|
||||
{
|
||||
list.AddRange(folder.Tags);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return list.Distinct(StringComparer.OrdinalIgnoreCase).ToList();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user