Added VideoType.ISO and trimmed Person output size
This commit is contained in:
parent
4527a18738
commit
977f8e970a
|
@ -206,7 +206,9 @@ namespace MediaBrowser.Api
|
||||||
{
|
{
|
||||||
BaseItemPerson baseItemPerson = new BaseItemPerson();
|
BaseItemPerson baseItemPerson = new BaseItemPerson();
|
||||||
|
|
||||||
baseItemPerson.PersonInfo = p;
|
baseItemPerson.Name = p.Name;
|
||||||
|
baseItemPerson.Overview = p.Overview;
|
||||||
|
baseItemPerson.Type = p.Type;
|
||||||
|
|
||||||
Person ibnObject = entities.First(i => i.Name.Equals(p.Name, StringComparison.OrdinalIgnoreCase));
|
Person ibnObject = entities.First(i => i.Name.Equals(p.Name, StringComparison.OrdinalIgnoreCase));
|
||||||
|
|
||||||
|
@ -263,7 +265,7 @@ namespace MediaBrowser.Api
|
||||||
{
|
{
|
||||||
Id = entity.Id,
|
Id = entity.Id,
|
||||||
BaseItemCount = itemCount,
|
BaseItemCount = itemCount,
|
||||||
HasPrimaryImage = !string.IsNullOrEmpty(entity.PrimaryImagePath),
|
HasImage = !string.IsNullOrEmpty(entity.PrimaryImagePath),
|
||||||
Name = entity.Name
|
Name = entity.Name
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,9 +30,11 @@ namespace MediaBrowser.Controller.Resolvers
|
||||||
{
|
{
|
||||||
if (IsVideoFile(args.Path))
|
if (IsVideoFile(args.Path))
|
||||||
{
|
{
|
||||||
|
VideoType type = Path.GetExtension(args.Path).EndsWith("", System.StringComparison.OrdinalIgnoreCase) ? VideoType.Iso : VideoType.VideoFile;
|
||||||
|
|
||||||
return new T()
|
return new T()
|
||||||
{
|
{
|
||||||
VideoType = VideoType.VideoFile,
|
VideoType = type,
|
||||||
Path = args.Path
|
Path = args.Path
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@ namespace MediaBrowser.Model.DTO
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid Id { get; set; }
|
public Guid Id { get; set; }
|
||||||
|
|
||||||
public bool HasPrimaryImage { get; set; }
|
public bool HasImage { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The number of items that have the genre, year, studio, etc
|
/// The number of items that have the genre, year, studio, etc
|
||||||
|
@ -31,7 +31,9 @@ namespace MediaBrowser.Model.DTO
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class BaseItemPerson
|
public class BaseItemPerson
|
||||||
{
|
{
|
||||||
public PersonInfo PersonInfo { get; set; }
|
public string Name { get; set; }
|
||||||
|
public string Overview { get; set; }
|
||||||
|
public string Type { get; set; }
|
||||||
public bool HasImage { get; set; }
|
public bool HasImage { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,7 @@ namespace MediaBrowser.Model.Entities
|
||||||
public enum VideoType
|
public enum VideoType
|
||||||
{
|
{
|
||||||
VideoFile,
|
VideoFile,
|
||||||
|
Iso,
|
||||||
DVD,
|
DVD,
|
||||||
BluRay
|
BluRay
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user