Commit graph

49 commits

Author SHA1 Message Date
soulis-1256
ea26dc794e
Make PATH assemblrr a wrapper around the install CLI
Stop copying cli.sh and a lib subset to ~/.local/bin. Setup and upgrade
write a short wrapper that execs $INSTALL_DIR/cli.sh. Leftover PATH libs
are removed. update-cli now points at upgrade.
2026-08-16 16:20:22 +03:00
soulis-1256
962e322fdb
Add config apply, full auth change, and *arr quality defaults
Re-wire without replacing compose. Update the shared login on every
UI. Make assemblrr quality profiles the Radarr/Sonarr Add New default.
config edit is picker-only. Forward Seerr Host headers, chmod only the
VPN secrets just written, and ignore Python cache files.
2026-08-16 15:58:48 +03:00
soulis-1256
e3c4b661e5
Make Bazarr provider picker match the indexer desired-set contract
Edit mode preselects enabled providers. Ctrl-O saves that set.
Empty confirm asks before disabling all. Esc still means no change.
2026-08-16 15:07:06 +03:00
soulis-1256
97d33b6a09
List purge in assemblrr --help and the README command table 2026-08-16 15:02:43 +03:00
soulis-1256
d4808f96a5
Fix remaining merge-review correctness bugs
Hold media-purge-watch when *arr shows a queue or upgrade delete.
config edit vpn retargets Radarr/Sonarr qB host and clears tun0 when
VPN is off. Start waits on the service catalog (missing ≠ ready).
Empty indexer confirm no longer wipes Prowlarr. Wire only minSeeders.
Existing-media import is optional.
2026-08-16 14:56:36 +03:00
soulis-1256
1bcd530f31
Merge origin/main to keep bootstrap --ref / ASSEMBLRR_REF
Main added install-ref one-liners; keep those bootstraps and README
examples so a later merge back to main does not drop --ref.
2026-08-16 14:52:25 +03:00
soulis-1256
bdd5f263b5
Tick elapsed seconds on blocking waits, not just API polls
Recyclarr sync, backup/restore archives, git fetches, and Prowlarr
indexer sync now use wait_while/wait_inline. Compose up/pull keep
their own progress instead of a fake overlay.
2026-08-16 14:40:25 +03:00
soulis-1256
1149dfaae4
Show elapsed seconds on wait lines instead of dots
Radarr and the other polls now rewrite one line as
'Waiting for Radarr API (12s)' instead of a growing dot trail.
2026-08-16 14:36:25 +03:00
soulis-1256
5f1ad302ea
Share detected install/media paths on status and uninstall
print_detected_locations is the single block both commands use.
Uninstall now names every path it removes or keeps.
2026-08-16 14:30:50 +03:00
soulis-1256
2493fddceb
Skip Hub pulls for local sidecars and strip CR from sourced .env
vpn-watchdog and media-purge-watch are build-only images; pull_policy
build stops the 'pull access denied' noise. Windows clones left CRLF
in .env.example so config.sh died with $'\\r' on /mnt/e — strip CR
when generating and sourcing .env.
2026-08-16 14:27:28 +03:00
soulis-1256
843d8dfc61
Record external-drive paths early and make uninstall find leftovers
A hung copy onto /mnt/e left the home pointer pointing at ~/assemblrr,
so uninstall --force --media never touched the E: trees. Write
INSTALL_DIRECTORY and MEDIA_DIRECTORY as soon as paths are chosen,
scan mounted drives for leftover assemblrr dirs, time out stuck
USB/WSL I/O, and let r refresh the drive picker (WSL automount).
2026-08-16 14:15:46 +03:00
soulis-1256
229ca00795
Use pacman -Syu when installing Arch packages
-Sy without -u is a partial upgrade and can install jq against a
newer glibc than the system has. Warn first, then run a full -Syu,
and fail if jq still cannot execute.
2026-08-16 13:54:32 +03:00
soulis-1256
6a142c75d8
Fix Recyclarr image, CLI PATH, and add drive path picker
Pin Recyclarr to ghcr.io/recyclarr/recyclarr:8 (:latest is unpublished)
and write ~/.local/bin into bashrc/zshrc/fish so the early CLI still
works after a failed setup on Arch/WSL. Setup now picks install/media
paths from an fzf list of home plus mounted drives.
2026-08-16 13:49:00 +03:00
soulis-1256
9ac07caf12
Scope TV request-delete to requested seasons
Seerr's DELETE /api/v1/media/:id/file is title-scoped and would wipe
every remaining season. For a TV request that is only a subset, the
gateway now deletes those Sonarr episode files and unmonitors them,
then drops the request. Movies and last remaining seasons still use
the title-level cascade.

media-purge --seasons and the inotify watcher match that: a season
path never title-purges (other seasons may only be monitored). qB
cleanup requires a season token, refuses multi-season and S01-03
packs, and uses the same title-boundary rules as title-level. *arr
recycle bin is /data/media/.recycle with 7-day cleanup.

Sonarr uncertainty (missing key, failed episodefile list, empty TV
season list) returns 502 and leaves the request. The gateway mounts
config/sonarr/ as a directory so first install cannot replace
config.xml with a Docker-created directory.
2026-08-16 12:04:27 +03:00
soulis-1256
e11ac87d7a
Fix Jellyfin empty-series after Sonarr season-pack imports
Fire Sonarr refresh once on import complete, skip a second
/Library/Refresh so it cannot cancel a running scan, and heal
series that still show 0 episodes despite video on disk.
2026-08-14 11:45:10 +03:00
soulis-1256
710540fc40
Add modular config edit and wait for healthy services
Section-based `config edit` (setup vs edit copy), qB Automatic Torrent
Management so category folders are used, upgrade --skip-stack/--skip-wire,
and a port-forwarding warning instead of a provider allowlist.
2026-08-13 21:50:59 +03:00
soulis-1256
0696a83e2d
Fix fresh-install stalls and harden default-on sidecars
qBittorrent 5.x does not bind WireGuard's tun0 unless told to, so tracker
and DHT packets left via eth0 and Gluetun dropped them (stalledDL). Bind
the session to tun0 on VPN installs. Build sidecar images on the host
instead of apk at start, move vpn-watchdog off Gluetun's netns, ignore
non-video inotify events, and stop start/upgrade from aborting or
re-prompting.
2026-08-13 01:25:20 +03:00
soulis-1256
6b1fb22adc
Verify OpenSubtitles.com login during setup
Explain that the website accepts email but Bazarr/API need the profile
username; reject @-looking usernames and live-test credentials via the
OpenSubtitles REST login before storing secrets.
2026-08-12 15:44:02 +03:00
soulis-1256
cea83b1d9d
Document mid-setup uninstall after early CLI bootstrap
Align uninstall.md with early operator CLI install, discovery pointer,
and abort paths (PATH CLI, install-tree cli.sh, or manual cleanup).
2026-08-12 15:36:02 +03:00
soulis-1256
fd4e7f33e1
Quiet setup copies and install CLI early for abort/uninstall
Per-file copy noise goes to the setup log only. Bootstrap the install
tree and operator CLI as soon as the path is known so users can run
uninstall after mid-setup abort; improve CLI discovery and partial-tree
uninstall resilience.
2026-08-12 15:33:44 +03:00
soulis-1256
0858a5a629
Drop Portainer from default stack; harden upgrade and setup UX
Remove Portainer from managed compose and catalog; leave a custom.yaml
example for optional use. Upgrade/start use compose --remove-orphans and
migration 002 removes leftover Portainer containers unless custom.yaml
keeps it. Fix setup double URL list when status is unhealthy, share
OpenSubtitles y/N on express, and tone down indexer/provider prompts.
2026-08-12 15:26:21 +03:00
soulis-1256
987fd0ccac
Select Bazarr providers via fzf from the live image
Drop hardcoded subtitle-provider defaults. Wire-up lists providers
from the running Bazarr container and enables only user selections
(plus OpenSubtitles.com when credentials were saved).
2026-08-12 15:08:59 +03:00
soulis-1256
0708ff92de
Support install ref in bootstrap one-liner
Clone a branch/tag via --ref/--branch or ASSEMBLRR_REF so the stable
main bootstrap can install non-default refs.
2026-08-12 14:53:02 +03:00
soulis-1256
a72875a77a
Use synthetic titles in media-purge match self-tests.
Avoid hardcoding real movie names in fixture data; keep only abstract
prefix/year cases that exercise the matcher rules.
2026-08-12 14:29:40 +03:00
soulis-1256
c2920808eb
Harden media-purge qB matching and refresh Jellyfin on delete.
Prefer history hashes filtered by library folder key, then exact folder-key
match only (no sequel prefix hits). Refuse ambiguous multi-matches. Ignore
partial file-delete events. Best-effort Jellyfin library refresh after purge.
2026-08-12 14:26:27 +03:00
soulis-1256
7339d1b8b4
Add seerr-gateway so delete request fully purges media.
Stock Seerr only drops the request row; intercept DELETE /api/v1/request/:id
to cascade media file delete (*arr + purge hooks) before removing the request.
2026-08-12 14:06:49 +03:00
soulis-1256
c180732db1
Add media purge cascade, seed defaults, and wire on upgrade.
Hardlink-safe cleanup: Seerr/Jellyfin/*arr deletes remove library files and
qB torrents via purge hooks and media-purge-watch. Indexers get seed ratio/time
so completed downloads can leave torrents/. Upgrade always re-wires services;
drop user-facing config sync. Live e2e covers Radarr, Seerr, and Jellyfin APIs.
2026-08-12 13:19:49 +03:00
soulis-1256
c00377844e
Import existing media into Radarr/Sonarr during config sync.
Unmapped folders under movie/TV roots are looked up and added with the
default quality profile (no search), then rescanned and synced to Bazarr.
Enables Netflix-like reinstall/keep-media and fills Bazarr for disk libraries.
2026-08-11 23:05:48 +03:00
soulis-1256
22562555c9
Replace services.txt cheat-sheet with assemblrr status dashboard.
Drop writing ~/assemblrr_services.txt; status now shows live state and
localhost URLs for each service, with --docker for raw compose ps.
Health parsing is fixed under set -e; uninstall cleans legacy txt.
2026-08-11 22:55:23 +03:00
soulis-1256
06729f5e5d
Fix Bazarr API key discovery for config.yaml and upgrade re-source.
Modern Bazarr stores settings in config.yaml (not config.ini). Read
auth.apikey from yaml or ini so upgrade/config sync can wire providers.
2026-08-11 22:46:49 +03:00
soulis-1256
b4d792f2b0
Add assemblrr upgrade engine with git/--from transport and Bazarr migration.
Introduce managed-file apply, ordered migrations, backup-first upgrade CLI,
and migration 001_add_bazarr (skip if user already defined Bazarr). Local
--from uses the same apply path as production git fetch of main.
2026-08-11 22:34:34 +03:00
soulis-1256
847e3c51c1
Add Bazarr as a first-class auto-wired subtitle service.
Ship Bazarr in the core compose stack, wire Sonarr/Radarr/Jellyfin on
config sync, apply TRaSH-style scoring, free multi-provider defaults, and
optional OpenSubtitles.com credentials from setup secrets.
2026-08-11 22:31:40 +03:00
soulis-1256
41383031d7
Use localhost for service URL cheat-sheet
LAN IPs from setup go stale after DHCP or network changes, so
ctrl-click links in assemblrr_services.txt timed out. Prefer
localhost so the saved URLs keep working on the install machine.
2026-08-11 16:02:19 +03:00
soulis-1256
f191d93d73
docs: remove redundant uninstall section 2026-08-07 16:55:16 +03:00
soulis-1256
48fd58373d
docs: add missing doc links and bash requirement 2026-08-07 16:53:13 +03:00
soulis-1256
6c7c853179
docs: simplify README features and extract TRaSH guides doc 2026-08-07 16:48:28 +03:00
soulis-1256
0772508c1f
Remove leftover services cheat-sheet on uninstall
Delete ~/assemblrr_services.txt during uninstall and drop redundant
interactive uninstall prose from the docs.
2026-08-05 18:20:08 +03:00
soulis-1256
188975fea2
Fail setup when service wiring critically fails
Track required vs optional wiring steps with real exit codes, stop
claiming success after partial failures, and note Jellyfin import scan
in the README.
2026-08-05 18:12:37 +03:00
soulis-1256
35b408d441
Replace configure/reconfigure with config show/edit/sync
Collapse the confusing dual commands into one config surface, rename
configure.sh to config.sh, and keep deprecated aliases for older installs.
2026-08-05 18:01:54 +03:00
soulis-1256
a97d6e58ed
Fix indexer min-seeders apply order and expand README features
Set the Prowlarr app profile before fullSync, wait for Radarr indexers,
then patch *arr minimumSeeders once. Expand Features & Philosophy to
match the install, CLI, VPN, and quality-profile behavior.
2026-08-05 16:40:49 +03:00
soulis-1256
bd126b704e
Fix quality profile setup and split Recyclarr into include packs
Always sync HD/UHD (and Sonarr WEB) as include packs, name them with
an assemblrr prefix, soften blocking CF scores, zero quality minSize,
relax minimumSeeders, and update Seerr on reconfigure. Document TRaSH
guide drift and tighten comments and uninstall messaging.
2026-08-05 16:12:47 +03:00
soulis-1256
a381de1f8f
Update README 2026-08-05 14:34:36 +03:00
soulis-1256
24d4222eeb
Document removal of root-owned install trees in uninstall.md
Failed VPN setup can leave config/ owned by root so rm -rf fails.
Guide Option 1–3 by install completeness and document Docker-based
removal without sudo.
2026-08-05 14:19:42 +03:00
soulis-1256
8cb601f9e7
Prepare install bind mounts before any container starts
Docker creates missing volume parents as root, which broke setup after
the early VPN test (config/ owned by root). Add prepare_install_dirs,
call it before VPN test and full compose up, and reuse it on CLI start.
2026-08-05 14:18:24 +03:00
soulis-1256
efb06d969e
Update README tagline 2026-08-05 14:07:33 +03:00
soulis-1256
15a929d2ef
Use lowercase assemblrr as the product name
Rename display branding and prose from Assemblrr to assemblrr for
a consistent identity across docs, CLI messages, and source comments.
2026-08-05 14:05:14 +03:00
soulis-1256
1fd188a5c4
Use .env.example as the env template and cover it with tests
Generate INSTALL_DIR/.env from .env.example via envsubst, drop
templates/envsubst.env, and add a unit test that keeps the template
keys aligned with setup. Tighten related docs and test helpers.
2026-08-05 14:01:04 +03:00
soulis-1256
3ddedb4d15
Add unit/integration tests under tests/ and clean up related docs
Move live watchdog smoke out of scripts/, drop the old ad-hoc test
scripts, and simplify uninstall + README CLI/optional-stack wording.
2026-08-05 13:43:45 +03:00
soulis-1256
e9f356cffd
Initial commit
Assemblrr: Docker-based bootstrap and wiring for a self-hosted media stack.
2026-08-04 23:42:34 +03:00