diff options
Diffstat (limited to 'Jellyfin.Data/Entities/ImageInfo.cs')
| -rw-r--r-- | Jellyfin.Data/Entities/ImageInfo.cs | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/Jellyfin.Data/Entities/ImageInfo.cs b/Jellyfin.Data/Entities/ImageInfo.cs index 659369545..8bbce95e4 100644 --- a/Jellyfin.Data/Entities/ImageInfo.cs +++ b/Jellyfin.Data/Entities/ImageInfo.cs @@ -6,11 +6,9 @@ namespace Jellyfin.Data.Entities { public class ImageInfo { - public ImageInfo(string path, int width, int height) + public ImageInfo(string path) { Path = path; - Width = width; - Height = height; LastModified = DateTime.UtcNow; } @@ -20,15 +18,11 @@ namespace Jellyfin.Data.Entities public int Id { get; protected set; } [Required] + [MaxLength(512)] + [StringLength(512)] public string Path { get; set; } [Required] - public int Width { get; set; } - - [Required] - public int Height { get; set; } - - [Required] public DateTime LastModified { get; set; } } } |
