Skip to content

fix(home): show metadata runtime in hero when playback duration is absent - #128

Merged
RXWatcher merged 1 commit into
Silo-Server:mainfrom
RXWatcher:fix/hero-runtime-and-starring-scrim
Jul 29, 2026
Merged

RXWatcher merged 1 commit into
Silo-Server:mainfrom
RXWatcher:fix/hero-runtime-and-starring-scrim

Conversation

@RXWatcher

@RXWatcher RXWatcher commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Movies were missing their runtime in the home hero. The TV Skyline marquee (TvFocusMarqueeModel.lengthText) and the phone featured-hero chips (FeaturedHeroMetadata.formatFeaturedRuntime) built their length token from duration_seconds only. The server populates that field solely from watch-progress rows, so movies in editorial rows (featured, New Streaming Movies, …) never showed a runtime while episode rows — whose items carry progress — looked fine.

Fix

Port the tvOS TVFocusMarquee.lengthText(runtimeMinutes:durationSeconds:) behavior to both Android hero surfaces: prefer the metadata runtime minutes the section payload already carries, fall back to the file/progress duration. Formatting is unchanged and identical to tvOS ("47 min" / "2h" / "2h 15m").

Testing

  • :androidTvApp:testDebugUnitTest (TvFocusMarqueeModel) and :androidApp:testDebugUnitTest (FeaturedHeroMetadata) pass.
  • :androidTvApp:assembleDebug and :androidApp:assembleDebug build clean.

AI-use disclosure: implemented with Claude Code.

🤖 Generated with Claude Code

…sent

The TV Skyline marquee and the phone featured-hero chips built their
length token from duration_seconds alone, which the server only populates
from watch-progress rows. Movies in editorial rows (featured, New
Streaming Movies, etc.) therefore never showed a runtime, while
episode-heavy rows looked fine.

Port the tvOS TVFocusMarquee.lengthText behavior: prefer the metadata
runtime minutes the section payload already carries, fall back to the
file/progress duration.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 29, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Home and TV metadata now prefer precomputed runtime minutes, with validated duration-based fallback formatting. The TV detail hero also adds a right-edge gradient scrim for the starring credit area.

Changes

Runtime metadata formatting

Layer / File(s) Summary
Runtime metadata flow
androidApp/.../FeaturedHeroMetadata.kt, androidTvApp/.../TvFocusMarqueeModel.kt
Featured and TV marquee metadata now pass runtime minutes and duration seconds to formatting helpers that prefer valid runtime values and otherwise derive rounded minutes from finite, positive durations.

TV hero scrim

Layer / File(s) Summary
Trailing hero scrim
androidTvApp/.../TvDetailHero.kt
Adds a horizontal gradient overlay that darkens the right edge of the detail hero backdrop.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested reviewers: quick104

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main hero runtime display fix, though it omits the TV detail scrim change.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@RXWatcher
RXWatcher force-pushed the fix/hero-runtime-and-starring-scrim branch from c1536fb to c073b14 Compare July 29, 2026 05:42
@RXWatcher RXWatcher changed the title fix: hero runtime fallback + detail-hero Starring-credit scrim fix(home): show metadata runtime in hero when playback duration is absent Jul 29, 2026
@RXWatcher
RXWatcher merged commit 98dafaf into Silo-Server:main Jul 29, 2026
1 check passed
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.

1 participant