Skip to content

[v1] Theme songs for movies and shows #937

Closed

Description

@crowquillx

Summary

Add opt-in theme music to movie and show detail pages. Silo discovers local theme audio and exposes it through the native API and Jellyfin compatibility layer. The web app plays it while a detail page is open and stops when the user leaves or starts normal playback. The feature is off by default.

User value / why v1

Plex and Jellyfin users may already have theme files in their libraries, but Silo currently ignores them. Supporting those files adds a familiar browsing feature without putting provider traffic or credentials in the core server.

This issue is for deciding whether the capability fits Silo. The title follows the current v1 proposal form, but implementation should target /api/v2 under #135. I am not requesting an exception to the /api/v1 freeze.

If this seems like a good direction, I am willing to prepare the pull request after the API migration is ready for new domain work.

API surface

Provisional native API:

  • GET /api/v2/catalog/themes/capability: report support through the shared V2 capability model, including typed delivery limitations.
  • POST /api/v2/catalog/items/{owner_id}/themes/{theme_id}/playback: require account and profile authentication and return a short-lived playback URL bound to the user, profile, owner, theme, and selected file.
  • GET|HEAD /api/v2/catalog/items/{owner_id}/themes/{theme_id}/audio: validate the playback grant and current access, then serve the original audio with range and conditional-request support.
  • Extend V2 item detail with the resolved theme owner and an ordered list of theme IDs, titles, durations, and containers.

The final paths, payloads, and playback grant should follow the migrated catalog and playback contracts. Structured operations should use the V2 Huma contract; audio delivery should follow its raw HTTP rules. Clients must not log or persist signed playback URLs.

Movies, series, and seasons can own themes. Seasons without themes inherit from their series. Episodes use their season's themes when available, otherwise their series' themes. Inheritance selects one owner's set rather than combining sets.

Jellyfin compatibility:

  • GET /Items/{id}/ThemeMedia and its user-prefixed form return the outer result with theme songs populated and the other theme collections empty.
  • GET /Items/{id}/ThemeSongs and its user-prefixed form return the inner result with items, count, start index, and owner ID.
  • Both discovery shapes honor inheritFromParent and sortBy=Random.
  • GET|HEAD /Audio/{itemId}/stream, /Audio/{itemId}/stream.{container}, and /Audio/{itemId}/universal support direct play only. Requests that require a different container, remux, or transcode return 400 PlaybackUnavailable.

Settings:

  • ui.theme_music_enabled
  • ui.theme_music_loop

Both settings use profile or profile-device scope, apply to the web platform, and default to false.

The initial capability can live in silo-server using user-managed local files. It covers scanning, storage, catalog detail, native playback, the web client, and Jellyfin compatibility. Initial delivery is direct play from a node that can access the file; cluster-aware delivery needs a separate design.

Automated provider downloads would require an additive silo-plugin-sdk host contract plus a separate provider-plugin repository. I propose handling that as follow-up work so it does not block the local-file capability. Theme videos, uploads, audio remux or transcode, and remote stream URLs are out of scope.

Client impact (android / apple / web)

  • Android: none initially. Add discovery, playback, settings, lifecycle behavior, and V2 fixture checks before advertising support.
  • Apple: none initially, with the same requirements as Android.
  • Web: add detail-page playback, fade in and out, looping, continuity while the resolved owner stays the same, and clean stops on navigation, normal media playback, logout, or profile switch. Handle expired or stale playback URLs and browser autoplay rejection without disrupting the page. Add controls for both settings.
  • Jellyfin compatibility clients: no changes expected for clients that already use the standard theme and audio routes.

Rough size (server-side)

L

AI harness

T3 Code through the Codex harness

AI tool(s)

Codex

AI model(s)

gpt-6-astra, gpt-5.6-sol, gpt-5.6-luna

AI involvement

AI-assisted

Independent or adversarial review

Codex reviewed the proposal against the repository guidance and public V2 migration work. Luna agents independently inspected the migration PRs and current issue requirements. The proposal now targets V2, leaves its API shape provisional, and defers implementation until the migration is ready for new domain work.

Activity

  1. added
    v1.0-proposed
    on Sep 4, 2026
  2. added
    triaged
    and removed
    triaged
    on Sep 20, 2026
  3. crowquillx commented on Sep 25, 2026

    @crowquillx
    ContributorAuthor

    closed by #1344

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

    v1.0-proposed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions