mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Fix broken chapter image placeholders when no image is present (#14230)
This commit is contained in:
parent
ef90fe9157
commit
4f3b49472a
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user