mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #11245] fix: add image count check to splash screen generation #12808
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/jellyfin/jellyfin/pull/11245
State: closed
Merged: Yes
Changes
This check will prevent the splash screen generation from running if we have no posters or no backdrops/thumbnails to generate a splash screen from. Since even if it ran it would just err out when it tried to retrieve the missing poster/backdrop/thumbnail.
I added the check inside
SkiaEncoder.CreateSplashscreento stop it from running if somebody tried to create a splash screen regardless of where theIImageEncoder.CreateSplashscreenmight be called from. If you want me to move the check to theSplashscreenPostScanTaskinstead, to prevent it from running even if we change the underlying implementation of theIImageEncoderin the future, then just say the word.Issues