mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
reverted tag enumeration
This commit is contained in:
parent
4b0a5ea8e9
commit
dfbbbf023d
@ -1588,28 +1588,18 @@ 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