mirror of https://github.com/jellyfin/jellyfin.git
added LockedFields to BaseItem
This commit is contained in:
parent
7ceb377cde
commit
f651d981ea
|
@ -233,6 +233,12 @@ namespace MediaBrowser.Controller.Dto
|
||||||
dto.DisplayMediaType = item.DisplayMediaType;
|
dto.DisplayMediaType = item.DisplayMediaType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (fields.Contains(ItemFields.LockedFields))
|
||||||
|
{
|
||||||
|
dto.LockedFields = item.LockedFields;
|
||||||
|
dto.LockedImages = item.LockedImages;
|
||||||
|
}
|
||||||
|
|
||||||
if (fields.Contains(ItemFields.Budget))
|
if (fields.Contains(ItemFields.Budget))
|
||||||
{
|
{
|
||||||
dto.Budget = item.Budget;
|
dto.Budget = item.Budget;
|
||||||
|
|
|
@ -157,6 +157,18 @@ namespace MediaBrowser.Controller.Entities
|
||||||
/// <value><c>true</c> if [dont fetch meta]; otherwise, <c>false</c>.</value>
|
/// <value><c>true</c> if [dont fetch meta]; otherwise, <c>false</c>.</value>
|
||||||
public bool DontFetchMeta { get; set; }
|
public bool DontFetchMeta { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the locked fields.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>The locked fields.</value>
|
||||||
|
public List<MetadataFields> LockedFields { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the locked images.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>The locked images.</value>
|
||||||
|
public List<ImageType> LockedImages { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Determines whether the item has a saved local image of the specified name (jpg or png).
|
/// Determines whether the item has a saved local image of the specified name (jpg or png).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -136,6 +136,9 @@
|
||||||
<Compile Include="..\MediaBrowser.Model\Entities\MediaType.cs">
|
<Compile Include="..\MediaBrowser.Model\Entities\MediaType.cs">
|
||||||
<Link>Entities\MediaType.cs</Link>
|
<Link>Entities\MediaType.cs</Link>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="..\MediaBrowser.Model\Entities\MetadataFields.cs">
|
||||||
|
<Link>Entities\MetadataFields.cs</Link>
|
||||||
|
</Compile>
|
||||||
<Compile Include="..\MediaBrowser.Model\Entities\MetadataProviders.cs">
|
<Compile Include="..\MediaBrowser.Model\Entities\MetadataProviders.cs">
|
||||||
<Link>Entities\MetadataProviders.cs</Link>
|
<Link>Entities\MetadataProviders.cs</Link>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
|
|
@ -458,6 +458,18 @@ namespace MediaBrowser.Model.Dto
|
||||||
/// <value>The revenue.</value>
|
/// <value>The revenue.</value>
|
||||||
public double? Revenue { get; set; }
|
public double? Revenue { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the locked fields.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>The locked fields.</value>
|
||||||
|
public List<MetadataFields> LockedFields { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the locked images.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>The locked images.</value>
|
||||||
|
public List<ImageType> LockedImages { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets a value indicating whether this instance can resume.
|
/// Gets a value indicating whether this instance can resume.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
|
||||||
|
namespace MediaBrowser.Model.Entities
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Enum MetadataFields
|
||||||
|
/// </summary>
|
||||||
|
public enum MetadataFields
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The cast
|
||||||
|
/// </summary>
|
||||||
|
Cast,
|
||||||
|
/// <summary>
|
||||||
|
/// The genres
|
||||||
|
/// </summary>
|
||||||
|
Genres,
|
||||||
|
/// <summary>
|
||||||
|
/// The production locations
|
||||||
|
/// </summary>
|
||||||
|
ProductionLocations,
|
||||||
|
/// <summary>
|
||||||
|
/// The studios
|
||||||
|
/// </summary>
|
||||||
|
Studios,
|
||||||
|
/// <summary>
|
||||||
|
/// The tags
|
||||||
|
/// </summary>
|
||||||
|
Tags
|
||||||
|
}
|
||||||
|
}
|
|
@ -53,6 +53,7 @@
|
||||||
<Compile Include="Dto\StudioDto.cs" />
|
<Compile Include="Dto\StudioDto.cs" />
|
||||||
<Compile Include="Entities\IByReferenceItem.cs" />
|
<Compile Include="Entities\IByReferenceItem.cs" />
|
||||||
<Compile Include="Entities\ItemReview.cs" />
|
<Compile Include="Entities\ItemReview.cs" />
|
||||||
|
<Compile Include="Entities\MetadataFields.cs" />
|
||||||
<Compile Include="Net\WebSocketMessage.cs" />
|
<Compile Include="Net\WebSocketMessage.cs" />
|
||||||
<Compile Include="Net\WebSocketMessageType.cs" />
|
<Compile Include="Net\WebSocketMessageType.cs" />
|
||||||
<Compile Include="Net\WebSocketState.cs" />
|
<Compile Include="Net\WebSocketState.cs" />
|
||||||
|
|
|
@ -66,6 +66,11 @@ namespace MediaBrowser.Model.Querying
|
||||||
/// </summary>
|
/// </summary>
|
||||||
IndexOptions,
|
IndexOptions,
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The locked fields
|
||||||
|
/// </summary>
|
||||||
|
LockedFields,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The item overview
|
/// The item overview
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue