mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 14:03:03 +03:00
incorporate file length into image cache tag
This commit is contained in:
@@ -765,11 +765,14 @@ namespace MediaBrowser.Server.Implementations.Dto
|
||||
|
||||
if (!string.IsNullOrEmpty(chapterInfo.ImagePath))
|
||||
{
|
||||
var file = new FileInfo(chapterInfo.ImagePath);
|
||||
|
||||
dto.ImageTag = GetImageCacheTag(item, new ItemImageInfo
|
||||
{
|
||||
Path = chapterInfo.ImagePath,
|
||||
Type = ImageType.Chapter,
|
||||
DateModified = _fileSystem.GetLastWriteTimeUtc(chapterInfo.ImagePath)
|
||||
DateModified = _fileSystem.GetLastWriteTimeUtc(file),
|
||||
Length = file.Length
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user