Skip to content

feat(library): add storage page with deletion suggestions - #21

Merged
bwees merged 5 commits into
mainfrom
feat/storage-page
Nov 29, 2026
Merged

bwees merged 5 commits into
mainfrom
feat/storage-page

Conversation

@bwees

@bwees bwees commented Nov 29, 2026

Copy link
Copy Markdown
Owner

Adds Library → Storage: disk usage, every title's size and Jellyfin plays, suggestions for what to delete, and deletion from the UI.

Server (Library)

  • library.watch-sync job (every 6 h + Sync now) copies every Jellyfin user's played and started videos into library_watch_history, matched to files by path.
  • Suggestions per movie or season: never watched, stale, finished season. Large only ranks the list. Thresholds are a setting, and a zero turns a rule off.
  • Play-based suggestions stay off until a sync succeeds, and while no played video matches a Magpie file.
  • Keep hides a movie, season or series from suggestions (library_storage_keeps).
  • Disk usage per filesystem via the new DiskSpace port (statfs).
  • New endpoints: GET /library/storage, POST /library/storage/sync, PUT /library/storage/keep, POST /library/storage/delete, GET|PUT /library/storage/thresholds.

Web

  • /storage: disk bars, then one table grouped into section rows (Never watched / Not watched lately / Finished seasons / Everything else / Kept). Series rows expand to seasons.
  • Delete dialog: delete files and stop monitoring (unmonitors in Catalog, then deletes), or remove whole titles.
  • Settings → Library: storage thresholds card.

Tests

  • Go: heuristics, sync, keeps, disks, bulk delete, Jellyfin adapter, disk adapter.
  • Vitest: sections, formatting, manager delete/keep flows.
  • Known flake, also on main: TestRepeatJellyfinSignInReusesTheUser.

@bwees
bwees merged commit 39f26fb into main Nov 29, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant