Backend: group TV episodes into Show/Season entities #5

Open
opened 2026-05-04 22:38:05 +10:00 by unkinben · 0 comments
Owner

Currently each uploaded file is a separate MediaItem with show_name/season/episode fields. The frontend has to client-side-group them. Proper fix: introduce a TvShow model (id, title, description, backdrop_s3_key, network, tmdb_id) and TvSeason model (show_id, season_number, poster_s3_key), with episodes foreign-keyed to seasons. Catalogue API needs /shows/ and /shows/{id}/seasons/{n}/episodes routes. Required for show-level backdrop images and accurate episode counts.

Currently each uploaded file is a separate MediaItem with show_name/season/episode fields. The frontend has to client-side-group them. Proper fix: introduce a TvShow model (id, title, description, backdrop_s3_key, network, tmdb_id) and TvSeason model (show_id, season_number, poster_s3_key), with episodes foreign-keyed to seasons. Catalogue API needs /shows/ and /shows/{id}/seasons/{n}/episodes routes. Required for show-level backdrop images and accurate episode counts.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unkin/streamstack#5