From 454be6da74f694907b9f2ed186d1e1f2c18ffba4 Mon Sep 17 00:00:00 2001 From: RXWatcher <14085001+RXWatcher@users.noreply.github.com> Date: Sun, 24 May 2026 16:12:49 +0200 Subject: [PATCH] feat(audiobooks): expose audiobooks/podcasts library types in admin UI Adds 'Audiobooks' and 'Podcasts' options to the library-type dropdown in the admin libraries page so operators can flag a folder as an audiobook or podcast library. Extends contentLevelsForType() so the admin UI's downstream filtering treats those types correctly (audiobook -> ['audiobook'], podcasts -> ['podcast', 'podcast_episode']). Backend scanner branches for these types were already wired in sub-plan 2. Co-Authored-By: Claude Opus 4.7 (1M context) --- web/src/pages/AdminLibraries.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/src/pages/AdminLibraries.tsx b/web/src/pages/AdminLibraries.tsx index 243ef9a3..0e68adda 100644 --- a/web/src/pages/AdminLibraries.tsx +++ b/web/src/pages/AdminLibraries.tsx @@ -1983,6 +1983,10 @@ function contentLevelsForType(libraryType: string): string[] { return ["movie"]; case "mixed": return ["movie", "series", "season", "episode"]; + case "audiobooks": + return ["audiobook"]; + case "podcasts": + return ["podcast", "podcast_episode"]; default: return []; } @@ -2395,6 +2399,8 @@ function LibraryForm({ Movies Series Mixed + Audiobooks + Podcasts