Backend: group TV episodes into Show/Season entities #5
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.