Move a single season of a TV show (#4)
CI / test (push) Successful in 1m14s

Shows can be expanded to list their seasons, each with its size and its own Dry run / Move buttons. A season joins the same show on the other
server, so finished seasons can go to the big server while the current one stays on the fast one.

- Source exports a season from the show folder, with a manifest of just that season's folder plus the show's loose non-video files. Refuses
  seasons with no folder of their own, or whose folder holds otherseasons' episodes.
- Destination finds the show by provider ID, then name. If it already has the show, the show's own files are skipped (Job.skip_files) and
  never overwritten; otherwise they come with the season. Refuses if the season folder already exists.
- Only episode watch state is carried for a season.
- Source trashes just the season folder; after the last season, the leftover show folder joins it in the same trash entry if no videos
  remain. The chosen trash entry is saved so a re-run after a crash finishes in the same place.
- New GET /seasons (UI and peer). Fake Jellyfin gains season items.
- e2e tests: season into a new show, into an existing show, last season leaving, destination already has the season, misfiled episodes.
This commit is contained in:
IxianPixel committed 2026-11-06 17:02:40 +00:00
1 parent 25a743b350
commit 484ac50508
21 files changed
+959 -111

No files matched your search

+11 -5
View File
@@ -63,12 +63,18 @@ async fn main() -> anyhow::Result<()> {
write(&base.join(format!("{folder}.en.srt")), 40_000);
write(&base.join("poster.jpg"), 200_000);
}
for ep in 1..=6 {
write(
&cloud.join(format!("tv/Severance/Season 01/Severance S01E{ep:02}.mkv")),
20 * MB,
);
for (season, eps) in [(1, 6), (2, 4)] {
for ep in 1..=eps {
write(
&cloud.join(format!(
"tv/Severance/Season {season:02}/Severance S{season:02}E{ep:02}.mkv"
)),
20 * MB,
);
}
}
write(&cloud.join("tv/Severance/tvshow.nfo"), 2_000);
write(&cloud.join("tv/Severance/poster.jpg"), 300_000);
write(
&home.join("movies/The Thing (1982)/The Thing (1982).mkv"),
40 * MB,