Move a single season of a TV show #4

Closed
opened 2026-11-06 16:19:48 +01:00 by Claude · 1 comment

What's needed

In TV Shows, it should be possible to move one season rather than the whole show. For example, keep the season currently being watched on the fast server and send finished seasons to the big one.

At the moment only a whole series can be moved (listed as "Season-level moves" on the roadmap).

What makes it different from a whole-show move

  • The destination may already have the show. plan currently refuses if the target folder exists (runner.rs: "already exists on this server; refusing to merge into it"). A season move has to go into an existing show folder. It should refuse only if the season folder already exists, so the never-overwrite rule still holds at season level.
  • Show-level files. If the destination doesn't have the show yet, tvshow.nfo, posters and other artwork from the show folder should come along with the season, without being removed from the source.
  • The source keeps the show folder. Only the season folder goes to .jellymove-trash/. When the last season leaves, decide whether the leftover show folder (metadata only) is trashed too, or the move is offered as a whole-show move instead.
  • Folder layout. Only allow it when the season has its own folder (Show/Season 2/). Refuse when episodes sit loose in the show folder, as the movie rules do for shared folders. Specials (Season 00/Specials) should work like any other season.
  • Indexing. The destination should wait until the season's episodes appear under the (possibly existing) series in Jellyfin, not just for a new series item.
  • Watch state. Episodes are already matched by (season, episode), so only that season's records need capturing and applying.

UI

Expand a show in the TV Shows list to see its seasons, each with its own move and dry-run buttons. This pairs well with the per-season sizes in #5.

Done when

  • One season can be moved in either direction, including into a show that already exists on the destination.
  • The move refuses when that season folder already exists on the destination.
  • E2E tests cover: a season into a new show, a season into an existing show, and the last season leaving the source.
## What's needed In TV Shows, it should be possible to move one season rather than the whole show. For example, keep the season currently being watched on the fast server and send finished seasons to the big one. At the moment only a whole series can be moved (listed as "Season-level moves" on the roadmap). ## What makes it different from a whole-show move - **The destination may already have the show.** `plan` currently refuses if the target folder exists (`runner.rs`: "already exists on this server; refusing to merge into it"). A season move has to go into an existing show folder. It should refuse only if the **season** folder already exists, so the never-overwrite rule still holds at season level. - **Show-level files.** If the destination doesn't have the show yet, `tvshow.nfo`, posters and other artwork from the show folder should come along with the season, without being removed from the source. - **The source keeps the show folder.** Only the season folder goes to `.jellymove-trash/`. When the last season leaves, decide whether the leftover show folder (metadata only) is trashed too, or the move is offered as a whole-show move instead. - **Folder layout.** Only allow it when the season has its own folder (`Show/Season 2/`). Refuse when episodes sit loose in the show folder, as the movie rules do for shared folders. Specials (`Season 00`/`Specials`) should work like any other season. - **Indexing.** The destination should wait until the season's episodes appear under the (possibly existing) series in Jellyfin, not just for a new series item. - **Watch state.** Episodes are already matched by (season, episode), so only that season's records need capturing and applying. ## UI Expand a show in the TV Shows list to see its seasons, each with its own move and dry-run buttons. This pairs well with the per-season sizes in #5. ## Done when - One season can be moved in either direction, including into a show that already exists on the destination. - The move refuses when that season folder already exists on the destination. - E2E tests cover: a season into a new show, a season into an existing show, and the last season leaving the source.
Claude Bot added this to the v0.2.0 milestone 2026-11-06 16:19:48 +01:00
Claude Bot added the Kind/Feature
Priority
Medium
3
labels 2026-11-06 16:19:48 +01:00

Done in 484ac50508 on develop, for v0.2.0.

  • UI: each show has Show seasons, listing each season with its size and its own Dry run / Move buttons. A season without a folder of its own is shown but can't be moved alone.
  • Existing show: the destination finds the show by provider ID (TVDB/TMDB/IMDb), then by name, and puts the season into that show's folder. It refuses only if that season's folder already exists.
  • Show-level files: tvshow.nfo and artwork come along only when the destination doesn't have the show yet. If it does, they're skipped and never overwritten.
  • Source keeps the show: only the season folder is trashed. When the last season leaves, what's left of the show folder joins it in the same trash entry, but only if no videos remain in it.
  • Folder layout: a season must have its own folder directly inside the show folder, holding only that season's episodes. Misfiled episodes are refused. Specials work like any other season.
  • Indexing: the destination waits for the show and then for every episode of the season to appear.
  • Watch state: episodes keep theirs, matched by (season, episode). The season's own user data isn't carried, since on the destination it would apply to the whole show.
  • Tests: e2e tests cover a season into a new show, a season into an existing show, the last season leaving, the destination already having the season, and misfiled episodes.

Not yet tried against real Jellyfin. It relies on Season items reporting Path and SeriesId, so a dry run of one season is worth doing first.

Done in 484ac5050861bbe99ca7ced1564c01983428d767 on `develop`, for v0.2.0. - **UI:** each show has **Show seasons**, listing each season with its size and its own Dry run / Move buttons. A season without a folder of its own is shown but can't be moved alone. - **Existing show:** the destination finds the show by provider ID (TVDB/TMDB/IMDb), then by name, and puts the season into that show's folder. It refuses only if that season's folder already exists. - **Show-level files:** `tvshow.nfo` and artwork come along only when the destination doesn't have the show yet. If it does, they're skipped and never overwritten. - **Source keeps the show:** only the season folder is trashed. When the last season leaves, what's left of the show folder joins it in the same trash entry, but only if no videos remain in it. - **Folder layout:** a season must have its own folder directly inside the show folder, holding only that season's episodes. Misfiled episodes are refused. Specials work like any other season. - **Indexing:** the destination waits for the show and then for every episode of the season to appear. - **Watch state:** episodes keep theirs, matched by (season, episode). The season's own user data isn't carried, since on the destination it would apply to the whole show. - **Tests:** e2e tests cover a season into a new show, a season into an existing show, the last season leaving, the destination already having the season, and misfiled episodes. Not yet tried against real Jellyfin. It relies on Season items reporting `Path` and `SeriesId`, so a dry run of one season is worth doing first.
Claude Bot closed this issue 2026-11-06 18:03:04 +01:00
Sign in to join this conversation.