mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 01:24:44 +01:00
Set initial display media type at resolve time
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
using MediaBrowser.Common.Extensions;
|
||||
using System;
|
||||
using MediaBrowser.Model.Entities;
|
||||
using MediaBrowser.Model.Entities;
|
||||
|
||||
namespace MediaBrowser.Controller.Entities
|
||||
{
|
||||
@@ -10,27 +8,6 @@ namespace MediaBrowser.Controller.Entities
|
||||
/// </summary>
|
||||
public abstract class BasePluginFolder : Folder, ICollectionFolder, IByReferenceItem
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the id.
|
||||
/// </summary>
|
||||
/// <value>The id.</value>
|
||||
public override Guid Id
|
||||
{
|
||||
get
|
||||
{
|
||||
// This doesn't get populated through the normal resolving process
|
||||
if (base.Id == Guid.Empty)
|
||||
{
|
||||
base.Id = (Path ?? Name).GetMBId(GetType());
|
||||
}
|
||||
return base.Id;
|
||||
}
|
||||
set
|
||||
{
|
||||
base.Id = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the type of the location.
|
||||
/// </summary>
|
||||
@@ -42,22 +19,5 @@ namespace MediaBrowser.Controller.Entities
|
||||
return LocationType.Virtual;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// We don't resolve normally so need to fill this in
|
||||
/// </summary>
|
||||
public override string DisplayMediaType
|
||||
{
|
||||
get
|
||||
{
|
||||
return "CollectionFolder"; // Plug-in folders are collection folders
|
||||
}
|
||||
set
|
||||
{
|
||||
base.DisplayMediaType = value;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user