mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-19 20:54:20 +01:00
set display media type in constructor
This commit is contained in:
@@ -571,11 +571,6 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||
{
|
||||
var folder = child.GetFolder();
|
||||
|
||||
if (string.IsNullOrEmpty(folder.DisplayMediaType))
|
||||
{
|
||||
folder.DisplayMediaType = "CollectionFolder";
|
||||
}
|
||||
|
||||
if (folder.Id == Guid.Empty)
|
||||
{
|
||||
folder.Id = (folder.Path ?? folder.Name ?? folder.GetType().Name).GetMBId(folder.GetType());
|
||||
|
||||
Reference in New Issue
Block a user