CSS theme that restyles Jellyfin as a 1999-era DVR: gold selection bar, chunky bevels, a proper grid channel guide, CRT phosphor. Selectors were read out of a live 10.11.11 server's own shipped bundles rather than from memory. Includes an offline preview harness that uses Jellyfin's real DOM structure, an optional Web Audio + guide-NOW-line extras layer, and install/rollback scripts. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
22 lines
1.1 KiB
Bash
Executable File
22 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Restore jellyfin.example.com's branding config to the pre-FlameNet backup
|
|
# (which had NO custom CSS). Reverts the theme completely.
|
|
# ./rollback.sh uses backups/branding-BEFORE-flamenet.json
|
|
# ./rollback.sh FILE.json restore a specific backup
|
|
set -euo pipefail
|
|
cd "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
: "${JELLYFIN_URL:=https://jellyfin.example.com}"
|
|
: "${JELLYFIN_TOKEN:?set JELLYFIN_TOKEN to a Jellyfin API key}"
|
|
SRC="${1:-backups/branding-BEFORE-flamenet.json}"
|
|
[[ -f "$SRC" ]] || { echo "backup not found: $SRC" >&2; exit 1; }
|
|
echo "restoring $SRC -> $JELLYFIN_URL"
|
|
code=$(curl -s -m 40 -o /dev/null -w '%{http_code}' -X POST \
|
|
"$JELLYFIN_URL/System/Configuration/branding" \
|
|
-H "X-Emby-Token: $JELLYFIN_TOKEN" -H "Content-Type: application/json" \
|
|
--data-binary @"$SRC")
|
|
echo "POST -> $code"
|
|
[[ "$code" == "204" ]] || { echo "unexpected status" >&2; exit 1; }
|
|
n=$(curl -s -m 20 "$JELLYFIN_URL/Branding/Css" | wc -c | tr -d ' ')
|
|
echo "served /Branding/Css is now $n bytes (0 = theme removed)"
|
|
echo "hard-reload the client to see it."
|