Fix TUI Add flow landing new movies/shows flat in the library root

add_selected_search_result passed the raw configured default_root_folder
straight through as root_folder for both movies and series, with no
per-item subfolder computed. import_one/season_dir both expect
root_folder to already be the item's own folder, so new grabs landed
directly in the shared library root instead of their own folder,
invisible to Jellyfin's per-category libraries. Split default_root_folder
(series) from a new movies_root_folder, and have the TUI build the
"{Title} (Year)" subfolder itself before sending the add request.
This commit is contained in:
Breadway 2026-08-05 19:02:27 +08:00
parent 15b5b12a06
commit 7e1b7450cf
4 changed files with 71 additions and 14 deletions

View file

@ -50,8 +50,13 @@ api_key = ""
bearer_token = ""
[library]
# Default root folder for shows added via the TUI's "Add Show" flow.
# Default root folder for shows added via the TUI's "Add" flow. Each show
# lands in its own "{root}/{Title} ({Year})" subfolder.
default_root_folder = "~/breadarr-library"
# Same, but for movies added via the TUI's "Add" flow — kept separate from
# default_root_folder since movies and shows live under different category
# roots on disk.
movies_root_folder = "~/breadarr-library/Movies"
[sources]
# nyaa's English-translated anime category — the daemon polls this