diff options
| author | theguymadmax <theguymadmax@proton.me> | 2025-06-06 15:52:00 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-06 13:52:00 -0600 |
| commit | 4f3b49472a783bd7aa30a39b67e5276fef3bf54d (patch) | |
| tree | 0e848aee33ca9f3146c7c3f8daf83101c2a75892 | |
| parent | ef90fe91573630a0ee3c288935c19a82a394a97e (diff) | |
Fix broken chapter image placeholders when no image is present (#14230)
| -rw-r--r-- | Jellyfin.Server.Implementations/Item/ChapterRepository.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Jellyfin.Server.Implementations/Item/ChapterRepository.cs b/Jellyfin.Server.Implementations/Item/ChapterRepository.cs index 9f2d47346..e0d23a261 100644 --- a/Jellyfin.Server.Implementations/Item/ChapterRepository.cs +++ b/Jellyfin.Server.Implementations/Item/ChapterRepository.cs @@ -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; } } |
