legacy-arrflix/bin
s8n b3ead71b7e shim: shorten subtitle stream labels in detail dropdowns
Stock Jellyfin renders subtitle stream entries as
"<lang> - <CODEC> - (External|Internal|Embedded)[ - flag]". For ARRFLIX,
which has at most one subtitle format per language, the codec and source
suffix are noise. Add a small JS shim to web-overrides/index.html that
matches that exact shape and collapses the label to "<lang>" (with
"(Forced)" / "(SDH)" / "(Hearing Impaired)" if those flags are
present; "Default" is dropped since it's redundant when there's only one
stream of that language).

Audio labels like "5.1Ch Surround Sound - English - AAC - Stereo - Default"
have a different number of segments and don't match, so they pass through
untouched.

The shim runs after DOMContentLoaded and re-walks any nodes added later
via MutationObserver (covers actionsheet dropdowns that mount lazily).

Bracketed by /* SUB-LABEL-SHIM-BEGIN */ and /* SUB-LABEL-SHIM-END */
markers; bin/revert-sub-label-shim.sh deletes between the markers in one
sed pass and saves a timestamped backup. No container restart needed
(index.html is bind-mounted).
2026-05-10 00:05:16 +01:00
..
add-jellyfin-user.sh force English everywhere on all 9 users + wrapper 2026-05-08 23:46:13 +01:00
apply-26-incident-fixes.sh doc 28 INC7-final: CSS overlay covering <video> was actual cause 2026-05-09 03:04:41 +01:00
english-lockdown-runner.sh docs+bin: English-only lockdown — re-apply runner + doc 20 2026-05-08 17:04:12 +01:00
force-english-all-users.sh doc 15: force English UI for all users (plan + script) 2026-05-08 04:22:04 +01:00
headless-test-v2.py doc 26 INC4: black band + 4K HDR slow transcode + v2 test + methodology audit 2026-05-09 01:46:47 +01:00
headless-test.py doc 26 INC2+INC3: pin backdrop, transparent sub-sections 2026-05-09 01:21:01 +01:00
inject-middle-theme.py fix: drop video z-index hack + heavy comments + doc 31 layer model 2026-05-09 22:41:51 +01:00
inject-shim.py web: english-lockdown shim — pin locale + hide switchers 2026-05-08 17:04:03 +01:00
prod-vs-dev-compare.py doc 28 INC7-final: CSS overlay covering <video> was actual cause 2026-05-09 03:04:41 +01:00
revert-sub-label-shim.sh shim: shorten subtitle stream labels in detail dropdowns 2026-05-10 00:05:16 +01:00