diff --git a/Manager.Data/Models/LibraryContext/MediaFormatEntity.cs b/Manager.Data/Models/LibraryContext/MediaFormatEntity.cs index 2c0d293..053713a 100644 --- a/Manager.Data/Models/LibraryContext/MediaFormatEntity.cs +++ b/Manager.Data/Models/LibraryContext/MediaFormatEntity.cs @@ -2,9 +2,10 @@ namespace Manager.Data.Models.LibraryContext; public class MediaFormatEntity { - public required string MediaId { get; set; } - public required string MediaPath { get; set; } - public VideoQuality VideoQuality { get; set; } = VideoQuality.None; + // Id = _ example: 58Gh4dE_123 + public required string Id { get; set; } + public required int Itag { get; set; } + public string? Quality { get; set; } public bool IsAdaptive { get; set; } public string? MimeType { get; set; } public long Bitrate { get; set; } @@ -12,25 +13,11 @@ public class MediaFormatEntity public long LastModifiedUnixEpoch { get; set; } public long ContentLengthBytes { get; set; } public long ApproxDurationMs { get; set; } - public int Width { get; set; } - public int Height { get; set; } - public double Framerate { get; set; } + public int? Width { get; set; } + public int? Height { get; set; } + public double? Framerate { get; set; } public string? QualityLabel { get; set; } - public int AudioChannels { get; set; } + public int? AudioChannels { get; set; } public string? AudioSampleRate { get; set; } - public double LoudnessDb { get; set; } -} - -public enum VideoQuality -{ - P4320 = 4320, - P2160 = 2160, - P1440 = 1440, - P1080 = 1080, - P720 = 720, - P480 = 480, - P360 = 360, - P240 = 240, - P144 = 144, - None = 0 + public double? LoudnessDb { get; set; } } \ No newline at end of file