mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 18:08:53 -07:00
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;
|
||||
}
|
||||
|
||||
if (fields.Contains(ItemFields.LockedFields))
|
||||
{
|
||||
dto.LockedFields = item.LockedFields;
|
||||
dto.LockedImages = item.LockedImages;
|
||||
}
|
||||
|
||||
if (fields.Contains(ItemFields.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>
|
||||
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>
|
||||
/// Determines whether the item has a saved local image of the specified name (jpg or png).
|
||||
/// </summary>
|
||||
|
@ -136,6 +136,9 @@
|
||||
<Compile Include="..\MediaBrowser.Model\Entities\MediaType.cs">
|
||||
<Link>Entities\MediaType.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\MediaBrowser.Model\Entities\MetadataFields.cs">
|
||||
<Link>Entities\MetadataFields.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\MediaBrowser.Model\Entities\MetadataProviders.cs">
|
||||
<Link>Entities\MetadataProviders.cs</Link>
|
||||
</Compile>
|
||||
|
@ -458,6 +458,18 @@ namespace MediaBrowser.Model.Dto
|
||||
/// <value>The revenue.</value>
|
||||
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>
|
||||
/// Gets a value indicating whether this instance can resume.
|
||||
/// </summary>
|
||||
|
30
MediaBrowser.Model/Entities/MetadataFields.cs
Normal file
30
MediaBrowser.Model/Entities/MetadataFields.cs
Normal file
@ -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="Entities\IByReferenceItem.cs" />
|
||||
<Compile Include="Entities\ItemReview.cs" />
|
||||
<Compile Include="Entities\MetadataFields.cs" />
|
||||
<Compile Include="Net\WebSocketMessage.cs" />
|
||||
<Compile Include="Net\WebSocketMessageType.cs" />
|
||||
<Compile Include="Net\WebSocketState.cs" />
|
||||
|
@ -66,6 +66,11 @@ namespace MediaBrowser.Model.Querying
|
||||
/// </summary>
|
||||
IndexOptions,
|
||||
|
||||
/// <summary>
|
||||
/// The locked fields
|
||||
/// </summary>
|
||||
LockedFields,
|
||||
|
||||
/// <summary>
|
||||
/// The item overview
|
||||
/// </summary>
|
||||
|
Loading…
Reference in New Issue
Block a user