Fix profile images.

This commit is contained in:
Patrick Barron
2020-05-20 12:09:52 -04:00
parent 623dcde65c
commit 7d9d54d2ec
5 changed files with 23 additions and 12 deletions

View File

@@ -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,14 +18,10 @@ 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; }
}