From 92ef6116f0fd12e94a988cb8f6ac02745dd846d8 Mon Sep 17 00:00:00 2001 From: npeter83 Date: Thu, 13 Aug 2026 03:43:02 +0200 Subject: [PATCH] fix(player): hold last-known Plex volume on a corrupt read, normalise once (review) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - applyVolume/setVol now pass the element's CURRENT level as the normalize fallback instead of undefined, so a corrupt persisted volume holds the playing level rather than jumping to PLEX_SCALE.default=1 (full) — the "full blast" failure mode playerVolume.ts's header explicitly warns against. (The old bare clamp muted instead; both are wrong for corrupt data.) readMerged shallow-merges stored prefs without per-field validation, so a corrupt volume is reachable. - setVol normalises the level ONCE and both applies + persists that same value, so the