logo fix attempt 1

This commit is contained in:
kdee committed 2026-09-23 12:45:11 -07:00
1 parent 36df765000
commit 3674f07716
2 files changed
+40 -12

No files matched your search

+13 -8
View File
@@ -36,16 +36,21 @@ with open(index_path, 'w') as f:
print("jellyfin-inject-banner: inlined banner script into " + index_path)
EOF
# Replace the logo image (filename contains a content hash that changes on updates)
# Replace the logo image(s) (filenames contain a content hash that changes on
# updates). "icon-transparent" is the top-bar logo as of the 12.x header
# redesign; "banner-light" is kept too since it's still used for the splash
# screen / PWA icons.
LOGO_SRC="${CUSTOM_DIR}/banner-light.png"
if [[ -f "${LOGO_SRC}" ]]; then
LOGO_DEST=$(ls "${WEB_DIR}"/banner-light.*.png 2>/dev/null | head -1)
if [[ -n "${LOGO_DEST}" ]]; then
cp "${LOGO_SRC}" "${LOGO_DEST}"
echo "jellyfin-inject-banner: replaced logo at ${LOGO_DEST}"
else
echo "jellyfin-inject-banner: no banner-light.*.png found in ${WEB_DIR}, skipping logo." >&2
fi
for LOGO_BASENAME in banner-light icon-transparent; do
LOGO_DEST=$(ls "${WEB_DIR}/${LOGO_BASENAME}".*.png 2>/dev/null | head -1)
if [[ -n "${LOGO_DEST}" ]]; then
cp "${LOGO_SRC}" "${LOGO_DEST}"
echo "jellyfin-inject-banner: replaced logo at ${LOGO_DEST}"
else
echo "jellyfin-inject-banner: no ${LOGO_BASENAME}.*.png found in ${WEB_DIR}, skipping." >&2
fi
done
else
echo "jellyfin-inject-banner: ${LOGO_SRC} not found, skipping logo." >&2
fi