[CHANGE] Updated entity

This commit is contained in:
max
2025-08-17 02:50:56 +02:00
parent f9aaf4267e
commit 7f7e137a92

View File

@@ -2,9 +2,10 @@ namespace Manager.Data.Models.LibraryContext;
public class MediaFormatEntity public class MediaFormatEntity
{ {
public required string MediaId { get; set; } // Id = <contentid>_<itag> example: 58Gh4dE_123
public required string MediaPath { get; set; } public required string Id { get; set; }
public VideoQuality VideoQuality { get; set; } = VideoQuality.None; public required int Itag { get; set; }
public string? Quality { get; set; }
public bool IsAdaptive { get; set; } public bool IsAdaptive { get; set; }
public string? MimeType { get; set; } public string? MimeType { get; set; }
public long Bitrate { get; set; } public long Bitrate { get; set; }
@@ -12,25 +13,11 @@ public class MediaFormatEntity
public long LastModifiedUnixEpoch { get; set; } public long LastModifiedUnixEpoch { get; set; }
public long ContentLengthBytes { get; set; } public long ContentLengthBytes { get; set; }
public long ApproxDurationMs { get; set; } public long ApproxDurationMs { get; set; }
public int Width { get; set; } public int? Width { get; set; }
public int Height { get; set; } public int? Height { get; set; }
public double Framerate { get; set; } public double? Framerate { get; set; }
public string? QualityLabel { get; set; } public string? QualityLabel { get; set; }
public int AudioChannels { get; set; } public int? AudioChannels { get; set; }
public string? AudioSampleRate { get; set; } public string? AudioSampleRate { get; set; }
public double LoudnessDb { 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
} }