mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-09-21 20:31:54 +00:00
Fix broken chapter image placeholders when no image is present (#14230)
This commit is contained in:
parent
ef90fe9157
commit
4f3b49472a
1 changed files with 6 additions and 1 deletions
|
|
@ -112,7 +112,12 @@ public class ChapterRepository : IChapterRepository
|
|||
ImagePath = chapterInfo.ImagePath,
|
||||
Name = chapterInfo.Name,
|
||||
};
|
||||
chapterEntity.ImageTag = _imageProcessor.GetImageCacheTag(baseItemPath, chapterEntity.ImageDateModified);
|
||||
|
||||
if (!string.IsNullOrEmpty(chapterInfo.ImagePath))
|
||||
{
|
||||
chapterEntity.ImageTag = _imageProcessor.GetImageCacheTag(baseItemPath, chapterEntity.ImageDateModified);
|
||||
}
|
||||
|
||||
return chapterEntity;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue