mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-27 19:08:27 +01:00
add new image params
This commit is contained in:
@@ -64,7 +64,7 @@ namespace MediaBrowser.Model.Dto
|
||||
|
||||
public float? Metascore { get; set; }
|
||||
|
||||
public bool IsUnidentified { get; set; }
|
||||
public bool? IsUnidentified { get; set; }
|
||||
|
||||
public int? AnimeSeriesIndex { get; set; }
|
||||
|
||||
@@ -217,6 +217,12 @@ namespace MediaBrowser.Model.Dto
|
||||
/// <value>The run time ticks.</value>
|
||||
public long? RunTimeTicks { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the recursive unplayed item count.
|
||||
/// </summary>
|
||||
/// <value>The recursive unplayed item count.</value>
|
||||
public int? RecursiveUnplayedItemCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the play access.
|
||||
/// </summary>
|
||||
@@ -235,13 +241,6 @@ namespace MediaBrowser.Model.Dto
|
||||
/// <value>The production year.</value>
|
||||
public int? ProductionYear { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the recursive unplayed item count.
|
||||
/// </summary>
|
||||
/// <value>The recursive unplayed item count.</value>
|
||||
[Obsolete]
|
||||
public int? RecursiveUnplayedItemCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the season count.
|
||||
/// </summary>
|
||||
|
||||
32
MediaBrowser.Model/Dto/DtoOptions.cs
Normal file
32
MediaBrowser.Model/Dto/DtoOptions.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using MediaBrowser.Model.Entities;
|
||||
using MediaBrowser.Model.Querying;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MediaBrowser.Model.Dto
|
||||
{
|
||||
public class DtoOptions
|
||||
{
|
||||
public List<ItemFields> Fields { get; set; }
|
||||
public List<ImageType> ImageTypes { get; set; }
|
||||
public int ImageTypeLimit { get; set; }
|
||||
public bool EnableImages { get; set; }
|
||||
|
||||
public DtoOptions()
|
||||
{
|
||||
Fields = new List<ItemFields>();
|
||||
ImageTypes = new List<ImageType>();
|
||||
ImageTypeLimit = int.MaxValue;
|
||||
EnableImages = true;
|
||||
}
|
||||
|
||||
public int GetImageLimit(ImageType type)
|
||||
{
|
||||
if (EnableImages && ImageTypes.Contains(type))
|
||||
{
|
||||
return ImageTypeLimit;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user