incorporate file length into image cache tag

This commit is contained in:
Luke Pulverenti
2015-03-20 16:06:04 -04:00
parent 6df78dcb34
commit e068e84ab6
7 changed files with 66 additions and 28 deletions

View File

@@ -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
});
}