mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-24 19:14:56 +01:00
Added VideoInfo to DTOBaseItem
This commit is contained in:
parent
fbf8cc833c
commit
f2de85b5d9
@@ -91,7 +91,8 @@ namespace MediaBrowser.Model.DTO
|
||||
public ItemSpecialCounts SpecialCounts { get; set; }
|
||||
|
||||
public AudioInfo AudioInfo { get; set; }
|
||||
|
||||
public VideoInfo VideoInfo { get; set; }
|
||||
|
||||
public bool IsType(Type type)
|
||||
{
|
||||
return IsType(type.Name);
|
||||
|
||||
18
MediaBrowser.Model/DTO/VideoInfo.cs
Normal file
18
MediaBrowser.Model/DTO/VideoInfo.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System.Collections.Generic;
|
||||
using MediaBrowser.Model.Entities;
|
||||
|
||||
namespace MediaBrowser.Model.DTO
|
||||
{
|
||||
public class VideoInfo
|
||||
{
|
||||
public string Codec { get; set; }
|
||||
public int Height { get; set; }
|
||||
public int Width { get; set; }
|
||||
public string ScanType { get; set; }
|
||||
|
||||
public VideoType VideoType { get; set; }
|
||||
|
||||
public IEnumerable<SubtitleStream> Subtitles { get; set; }
|
||||
public IEnumerable<AudioStream> AudioStreams { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,7 @@ namespace MediaBrowser.Model.Entities
|
||||
{
|
||||
public VideoType VideoType { get; set; }
|
||||
|
||||
public IEnumerable<string> Subtitles { get; set; }
|
||||
public IEnumerable<SubtitleStream> Subtitles { get; set; }
|
||||
public IEnumerable<AudioStream> AudioStreams { get; set; }
|
||||
|
||||
public int Height { get; set; }
|
||||
@@ -25,6 +25,12 @@ namespace MediaBrowser.Model.Entities
|
||||
public int Channels { get; set; }
|
||||
public int SampleRate { get; set; }
|
||||
public bool IsDefault { get; set; }
|
||||
}
|
||||
|
||||
public class SubtitleStream
|
||||
{
|
||||
public string Language { get; set; }
|
||||
public bool IsDefault { get; set; }
|
||||
public bool IsForced { get; set; }
|
||||
}
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
<ItemGroup>
|
||||
<Compile Include="DTO\AudioInfo.cs" />
|
||||
<Compile Include="DTO\DTOBaseItem.cs" />
|
||||
<Compile Include="DTO\VideoInfo.cs" />
|
||||
<Compile Include="Entities\Audio.cs" />
|
||||
<Compile Include="Entities\BaseEntity.cs" />
|
||||
<Compile Include="Entities\BaseItem.cs" />
|
||||
|
||||
Reference in New Issue
Block a user