|
|
@ -40,6 +40,8 @@ namespace MediaBrowser.Controller.Entities
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
public abstract class BaseItem : IHasProviderIds, IHasLookupInfo<ItemLookupInfo>, IEquatable<BaseItem>
|
|
|
|
public abstract class BaseItem : IHasProviderIds, IHasLookupInfo<ItemLookupInfo>, IEquatable<BaseItem>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
private BaseItemKind? _baseItemKind;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// The trailer folder name.
|
|
|
|
/// The trailer folder name.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
@ -2009,7 +2011,7 @@ namespace MediaBrowser.Controller.Entities
|
|
|
|
|
|
|
|
|
|
|
|
public BaseItemKind GetBaseItemKind()
|
|
|
|
public BaseItemKind GetBaseItemKind()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return Enum.Parse<BaseItemKind>(GetClientTypeName());
|
|
|
|
return _baseItemKind ??= Enum.Parse<BaseItemKind>(GetClientTypeName());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|