mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 17:44:43 +01:00
add additional playlist buttons
This commit is contained in:
@@ -1309,8 +1309,7 @@ namespace MediaBrowser.Controller.Entities
|
||||
{
|
||||
Path = file.FullName,
|
||||
Type = type,
|
||||
DateModified = FileSystem.GetLastWriteTimeUtc(file),
|
||||
Length = ((FileInfo)file).Length
|
||||
DateModified = FileSystem.GetLastWriteTimeUtc(file)
|
||||
});
|
||||
}
|
||||
else
|
||||
@@ -1421,14 +1420,11 @@ namespace MediaBrowser.Controller.Entities
|
||||
return null;
|
||||
}
|
||||
|
||||
var info = new FileInfo(path);
|
||||
|
||||
return new ItemImageInfo
|
||||
{
|
||||
Path = path,
|
||||
DateModified = FileSystem.GetLastWriteTimeUtc(info),
|
||||
Type = imageType,
|
||||
Length = info.Length
|
||||
DateModified = FileSystem.GetLastWriteTimeUtc(path),
|
||||
Type = imageType
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,5 @@ namespace MediaBrowser.Controller.Entities
|
||||
public ImageType Type { get; set; }
|
||||
|
||||
public DateTime DateModified { get; set; }
|
||||
|
||||
public long? Length { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user