Skip to content

Open a show page on its play target's season with play_season_number #462

Open

Description

@Quick104

Silo-Server/silo-server#1833 adds play_season_number to the v2 item detail (GET /api/v2/catalog/items/{id}). When play_content_id names an episode, the field holds that episode's season (0 for specials). It is absent when there is no play target or the target is not an episode, and older servers never send it.

Today a series page that opens on the episode its Play button plays has to fetch that episode to learn its season before it can request the season's episode list. With the field, the client can call GET /api/v2/catalog/series/{id}/seasons/{num}/episodes straight away.

To do:

  • Decode the optional play_season_number in the v2 item detail model.
  • When it is present, select that season and load its episodes without fetching the play target first.
  • When it is absent, keep the current path.

The contract is documented in docs/catalog-api.md ("Play target season") in silo-server.

Activity

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

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions