mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 17:24:46 +03:00
added HasDynamicCategories to user views
This commit is contained in:
@@ -395,6 +395,18 @@ namespace MediaBrowser.Server.Implementations.Dto
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var userView = item as UserView;
|
||||
if (userView != null)
|
||||
{
|
||||
dto.HasDynamicCategories = userView.ContainsDynamicCategories(user);
|
||||
}
|
||||
|
||||
var collectionFolder = item as ICollectionFolder;
|
||||
if (collectionFolder != null)
|
||||
{
|
||||
dto.HasDynamicCategories = false;
|
||||
}
|
||||
}
|
||||
|
||||
private int GetChildCount(Folder folder, User user)
|
||||
|
||||
Reference in New Issue
Block a user