mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 01:24:44 +01:00
start on content type setting
This commit is contained in:
@@ -1546,12 +1546,17 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||
return ItemRepository.RetrieveItem(id);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Finds the type of the collection.
|
||||
/// </summary>
|
||||
/// <param name="item">The item.</param>
|
||||
/// <returns>System.String.</returns>
|
||||
public string FindCollectionType(BaseItem item)
|
||||
public string GetContentType(BaseItem item)
|
||||
{
|
||||
return GetInheritedContentType(item);
|
||||
}
|
||||
|
||||
public string GetInheritedContentType(BaseItem item)
|
||||
{
|
||||
return GetTopFolderContentType(item);
|
||||
}
|
||||
|
||||
private string GetTopFolderContentType(BaseItem item)
|
||||
{
|
||||
while (!(item.Parent is AggregateFolder) && item.Parent != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user