Skip to content

Player HUD: Quality row says what is playing; Audio note names the real reason - #796

Merged
GLinnik21 merged 5 commits into
mainfrom
fix/enh-reason-not-quality
Oct 16, 2026
Merged

GLinnik21 merged 5 commits into
mainfrom
fix/enh-reason-not-quality

Conversation

@GLinnik21

Copy link
Copy Markdown
Collaborator

Closes #794

Problem

The … popover read Quality: Original while the Audio popover said Boost dialog / Normalize loudness were "Available only at Original quality." Two things caused this:

  • One reason code for several causes. DisabledReason::NotOriginalQuality covered every case with no Original candidate: Force Direct Play, relay, a picture that must be converted, and a mid-play track pick that dropped the candidate. Most of these happen while Original is already the chosen quality.
  • The Quality row repeated the viewer's choice, not what is playing.

Change (text only: resolve and playback behaviour unchanged)

Why no Original candidate

  • OriginalDeclined (ForcedDirectPlay, Relay, VideoNeedsConverting, NoSource, TrackPickDropped) is recorded beside auto_original, at the plan build site and at the mid-play null sites.
  • The resolve logs original: no candidate (<cause>).

Audio note

  • EnhancementFacts carries the picked quality and the declined cause.
  • New reasons: ForcedDirectPlay, ServerConverting, NotCopyable.
  • NotOriginalQuality remains only when the quality in force is not Original.

Quality row (design chosen by a UX board review): {choice} · {playing}, where the second part is dropped when it would repeat the first.

Situation Quality row Picker
Original, file untouched Original ✓ Original
Original, picture converted (includes a subtitle burn) Original · Converted ✓ Original, sub-line "Your Plex server is converting this video."
Auto, file untouched Auto · Original ✓ Auto
Auto, stepped down Auto · 720p ✓ Auto, same sub-line
Auto, converted with no ceiling Auto · Converted ✓ Auto, same sub-line
Fixed rung 720p (short name) ✓ 720p · 4 Mbps
  • Only a converted picture counts. A sound-only conversion (remux) still reads Original, and Boost stays available there.
  • While the route is unsettled (a pending switch), the row shows the choice alone.

Strings (en)

  • "Not available while Force Direct Play is on. Set Direct Play to Auto in Settings to use it."
  • "Not available while your Plex server converts this video."
  • "Your Plex server can't add this to this video right now."
  • "Converted"
  • "Your Plex server is converting this video."

All five catalogs (en, es, fr, it, be) carry every key. The language-fit test passes. The Belarusian wording reuses the catalog's existing vocabulary («канвертуе», «Прамое прайграванне», «Аўтаматычна»).

Verification

  • Regression tests failed first. The regression tests were watched failing on the old logic:
    • enh_rows_disabled_under_original_never_blames_quality
    • enh_rows_disabled_forced
    • enh_rows_disabled_after_a_dropped_pick_under_auto_blames_quality
    • the_quality_row_reads_choice_then_what_is_playing: every situation above, plus burn and pending-switch cases
  • make check exited 0 at 12a9c1b12, before the simplify commit. The simplify commit (33aab6d22) has only passed cargo check --lib --no-default-features; this PR's CI is its first full test run.
  • Review: one Opus review of the combined diff. Its findings are fixed in 12a9c1b12.
  • Not verified on the TV. In the reported case the episode is HEVC 10-bit with AC3 2.0, canNormalizeLoudness true, playing directly, so the old note was hiding a different cause (most likely Force Direct Play). The new log line and note will name it on the device.

🤖 Generated with Claude Code

GLinnik21 and others added 5 commits October 16, 2026 00:08
… Quality: Original

The Audio popover's disabled Boost dialog / Normalize loudness rows blamed the quality for every
missing Original candidate. Record why no candidate exists (OriginalDeclined), carry the quality in
force in EnhancementFacts, and keep NotOriginalQuality for a quality that is not Original. New
reasons: ForcedDirectPlay (names the setting) and NotCopyable. Resolve behaviour is unchanged; a
decline log line names the cause.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…rver converts

Row value is '{choice} · {playing}' (UX board verdict): Original, 'Original · Converted', 'Auto ·
Original', 'Auto · 720p', fixed rung by short name; the choice alone while the stream is unsettled.
The checked entry gets a neutral sub-line for a conversion the viewer did not pick by name. The
Audio note reads the same fact (ServerConverting).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ording, plain Plex server notes

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…; Belarusian 'right now' wording

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@GLinnik21
GLinnik21 marked this pull request as ready for review October 15, 2026 23:33
@GLinnik21
GLinnik21 merged commit 7bc091b into main Oct 16, 2026
17 checks passed
@GLinnik21
GLinnik21 deleted the fix/enh-reason-not-quality branch October 16, 2026 00:03
GLinnik21 added a commit that referenced this pull request Oct 16, 2026
GLinnik21 added a commit that referenced this pull request Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Player HUD: "Available only at Original quality" shown while Quality reads Original

1 participant