Fix broken chapter image placeholders when no image is present (#14230)

This commit is contained in:
theguymadmax 2025-06-06 15:52:00 -04:00 committed by GitHub
parent ef90fe9157
commit 4f3b49472a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -112,7 +112,12 @@ public class ChapterRepository : IChapterRepository
ImagePath = chapterInfo.ImagePath, ImagePath = chapterInfo.ImagePath,
Name = chapterInfo.Name, Name = chapterInfo.Name,
}; };
if (!string.IsNullOrEmpty(chapterInfo.ImagePath))
{
chapterEntity.ImageTag = _imageProcessor.GetImageCacheTag(baseItemPath, chapterEntity.ImageDateModified); chapterEntity.ImageTag = _imageProcessor.GetImageCacheTag(baseItemPath, chapterEntity.ImageDateModified);
}
return chapterEntity; return chapterEntity;
} }
} }