Skip to content

[bug] Weekly trending section is labeled as TMDB Trending Today #586

Closed

Description

@tomislav

What happened

On a real Docker deployment, adding the TMDB Trending This Week preset to the Home page creates the section, but the section summary displays a TMDB Trending Today recipe badge.

The section title remains TMDB Trending This Week. Code inspection indicates this is a display-only issue:

  • All external trending variants share the trending_discover section type.
  • The gallery correctly initializes the selected weekly preset with {"source":"tmdb","window":"week"} and submits that configuration.
  • The backend preserves and canonicalizes tmdb/week to the weekly snapshot.
  • The web summary label calls recipeLabel(catalog, section.sectionType), which returns found.presets[0].display_name without inspecting the saved section config.
  • The first registered trending_discover preset is TMDB Trending Today.

The same code path appears likely to label Trakt Trending as TMDB Trending Today, although that variant was not part of this reproduction.

Steps to reproduce

  1. Open the Silo Web administration interface.
  2. Open the Home sections configuration.
  3. Select Add from gallery.
  4. Choose TMDB Trending This Week.
  5. Click Add section.
  6. Inspect the newly created section in the sections list.
  7. Observe that its recipe badge says TMDB Trending Today.

Expected behavior

The displayed recipe badge should reflect the saved preset configuration:

  • source: tmdb, window: day → TMDB Trending Today
  • source: tmdb, window: week → TMDB Trending This Week
  • source: trakt → Trakt Trending

The configured source and window should remain unchanged.

Silo version / commit

fe11b2601dd339398ea9b74b18d5d0eebe6c16db

Deployment

Docker

Clients affected

  • Web UI
  • Android
  • iOS/tvOS/macOS
  • Jellyfin-compat client (Infuse, Findroid, ...)
  • Other/not client-specific

Relevant logs

no logs available

AI involvement in this report

AI-assisted, human verified the repro.

AI tool + model

OpenAI Codex / gpt-5

AI Disclosure

  • Tool(s): OpenAI Codex
  • Model(s): gpt-5
  • Involvement: AI-assisted; the human reported and verified the real-deployment behavior.
  • Adversarial review: Traced the selected preset through gallery state, section creation, backend snapshot canonicalization, and the section-summary label. The weekly configuration is preserved and consumed correctly; the mismatch is isolated to the web label selecting the first preset for the shared recipe type.

Confirmations

  • I reproduced this myself on a real deployment.
  • No relevant server logs are available; no logs were synthesized or AI-summarized.

Activity

  1. added
    bug
    triaged
    and removed
    triaged
    on Sep 20, 2026
  2. added theissue type on Sep 20, 2026
  3. removed
    bug
    on Sep 20, 2026
  4. Tobechukwu-Njoku commented on Sep 26, 2026

    @Tobechukwu-Njoku
    Contributor

    This looks fixed on main by #1503 (merged today), which was filed against #1500.

    recipeLabel now resolves a section's preset from its saved config through matchRecipePreset, instead of always taking the recipe's first preset. That is the cause of the mislabel here: trending_discover registers tdisc_tmdb_day, tdisc_tmdb_week and tdisc_trakt, which differ only by default_params, so all three rendered as "TMDB Trending Today".

    Worth closing this as resolved unless someone still sees a wrong label after updating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions