diff options
| author | Patrick Barron <barronpm@gmail.com> | 2020-05-20 12:09:52 -0400 |
|---|---|---|
| committer | Patrick Barron <barronpm@gmail.com> | 2020-05-20 12:09:52 -0400 |
| commit | 7d9d54d2ecad14eaec14b00ca73c479d4d64c34f (patch) | |
| tree | 406fbf7f8144984b56475725e8d4fde6b8a076b2 /Jellyfin.Data/Entities | |
| parent | 623dcde65c25e6d7f64f6e9fc354208b708c17b8 (diff) | |
Fix profile images.
Diffstat (limited to 'Jellyfin.Data/Entities')
| -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 6593695450..8bbce95e4b 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; } } } |
