Skip to content

:shipit: feat: 0.11.0 headless services, layered settings, themes, setup split, and better search coverage - #2

Merged
Piratebird merged 18 commits into
mainfrom
fix/spelling-variants
Nov 3, 2026
Merged

Piratebird merged 18 commits into
mainfrom
fix/spelling-variants

Conversation

@Piratebird

Copy link
Copy Markdown
Owner
  • Add headless services: download jobs, watch folders, serve, attach and --daemon, with real stack benchmarks
  • Replace config.json with layered TOML/JSONC settings and add config init, edit, doctor and show
  • Add theme presets, banner modules and the banner command, and apply the theme across the UI
  • Rebuild setup.sh from small functions on one compose template and move stack setup into helm-torrent init inside the image
  • Move helm.core into feature packages and split cli.py into commands
  • Tag one-shot waits per run, write plain progress in logs and prune stopped daemon records
  • Test the wizard automation and CLI commands, and install tmux and libtorrent in CI
  • Rename download_magnet to download_torrent and bump to 0.11.0
  • Keep publish dates from the Jackett and Prowlarr JSON APIs and keep recovered search errors in the log
  • Merge duplicate results by info hash across sources
  • Filter by source category, rank weak keywords lower instead of hiding, lower min_seeds to 1 and add show:all
  • Seed 14 public Jackett indexers and share the list with Prowlarr
  • Match qBittorrent's nova3 plugin API and use plugin download_torrent for details-page links
  • Try split spellings on thin searches (spiderman as spider man), soften REPACK and join rounded sizes

One commit per stacked branch, squashed in order. Tag v0.11.0 right after merging so ghcr.io/piratebird/helm:latest gets the image with init, which setup.sh now needs.

…enchmarks

- Add durable job queue with isolated workers, crash recovery, and cancellation
- Add download, watch, serve, files, attach, and daemon commands
- Add authenticated HTTP job API with range streaming of finished files
- Resolve detail pages, redirects, direct .torrent URLs, and local metadata
- Isolate Lite sources in bounded subprocesses with per-source diagnostics
- Add standalone uninstall.sh and rename the executable to helm-torrent
- Make libtorrent an optional download extra and fix Termux DHT bootstrap
- Re-login to qBittorrent on expired sessions and tag jobs for batch reconcile
- Redact secrets across logs and reports, including qBittorrent temp passwords
- Defer heavy CLI imports and split main into smaller handlers
- Use SQLite WAL, indexed lookups, and sendfile for the queue and file server
- Add Docker and Podman stack benchmarks with verified cgroup limits
- Add real-socket, subprocess, tmux, and fake-engine test coverage
- Add settings core with validation, value origins, and a shared JSON Schema
- Resolve environment, config file, runtime state, then defaults
- Migrate non-default config.json values to config.toml once, keeping the original
- Report invalid config clearly and never reset the user's file
- Move every config caller to settings and use one set of service defaults
- Handle config errors in the console entry point
- Add tomli below Python 3.11 and update uninstall, setup, and docs
- Add helm-torrent config init, edit, doctor and show --origin
- Generate a commented template from the settings fields in TOML or JSONC
- Check syntax, values, unknown keys, ignored files, secrets.env mode, directories and services
- Keep config commands working on a broken file by skipping the early settings load
- Add resolve_settings to collect problems without raising or migrating
- Hide passwords in URLs and never print secrets
- Add subprocess tests with a fake editor and a real local HTTP server
- Add helm, tokyo-night, nord and catppuccin-mocha presets with single-colour overrides
- Add theme, logo and banner settings with validation, schema and template entries
- Build banner data from built-in, file or command logos and built-in or command modules
- Run every banner part under one deadline so a slow or failing part cannot delay or break it
- Add an ANSI renderer that follows NO_COLOR and FORCE_COLOR
- Add helm-torrent banner with --json, and logo checks in config doctor
- Keep the default look: the helm preset and logo match the current UI
- Route every colour and terminal code in the CLI, UI, wizard, one-shot mode and Lite downloader through the theme
- Keep ansi.py as the only file that writes escape codes, enforced by a test
- Remove colors.py and move the wordmark to banner.py, pinned byte for byte
- Add success, warning and info colours; the helm preset keeps the terminal's own
- Show the banner at UI start, or the plain wordmark when banner.enabled is false
- Turn colours off when piped or with NO_COLOR, and back on with FORCE_COLOR
- Keep --json output plain even with FORCE_COLOR set
- Split setup.sh into small functions with a short main and a source guard
- Render one compose template, shared with helm-torrent init, and remove docker-compose.yml.example
- Detect existing Jackett or Prowlarr before writing the compose and env files
- Mount the config directory into the CLI container instead of an unread config.json
- Use the published Helm image on Podman instead of a mini-helm image nothing built
- Fix the gluetun port, QB_WEBUI with a VPN, the systemd ExecStart and the launcher's oneshot check
- Write .env.docker with mode 0600 and INDEXER_MANAGER, and keep an existing qBittorrent.conf
- Test the real script against fake Docker, Podman and systemctl, and both renderers against each other
- Keep only host work in setup.sh: arguments, engine checks and installs, native installs, systemd
- Run helm-torrent init in the Helm image with the socket and directories mounted at the same paths
- Run the init container as the user on rootful Docker so generated files stay theirs
- Move the compose file, .env.docker, API keys and launcher into tested Python
- Add --engine, --indexers, --run-mode, --workdir, --socket, --project, --mount-source and --skip-prompts to init
- Let init run on a broken config file, and fall back to a local image when the pull fails
- Replace init_env.py; Prowlarr still seeds its default indexers on first search
…i.py

- Split helm.core into config, search, torrents, services, stack, benchmarks and net packages
- Move the logger to helm.logger and the compose template next to helm.stack
- Keep every module name, so only import paths change and behaviour stays the same
- Keep helm.core.http, logger and rss_fetcher as thin aliases for Lite plugins
- Split cli.py into helm/cli with one module per command group under commands/
- Route the lazy imports and patched helpers through helm.cli.deps for tests
- Anchor the config/ ignore rule to the repo root so src/helm/config is tracked
…n prune

- Tag interactive submissions with helm and a per-run tag, and wait on that tag only
- Run the wait through qb_request and the configured URL, and stop on missing credentials
- Remove only this run's unfinished torrents on Ctrl+C
- Add a Progress helper that writes plain, rate-limited lines when output is not a terminal
- Raise QBittorrentAuthError for login failures and narrow the one-shot and cancel error handling
- Add helm-torrent daemon prune for records of stopped daemons
…rent in CI

- Test the wizard's full-automation prompts against a local fake Jackett, Prowlarr and qBittorrent
- Cover status, indexer management and the interactive session in process
- Install tmux and try libtorrent in CI, and list skipped tests
- Drop the redundant requirements.txt install from CI and keep the file equal to pyproject.toml
…hmarks

- Rename the Lite downloader's download_magnet to download_torrent, keeping the old name as an alias
- Bump the version to 0.11.0 and head the release notes, leaving the date for the tag
- Rerun the six- and two-worker loopback benchmarks on a clean tree so source hashes match the code
…rs in the log

- Read PublishDate from Jackett and publishDate from Prowlarr JSON results, keeping only the date part, and treat Jackett's 0001-01-01 as no date
- Log the missing Prowlarr key and the JSON-to-Torznab fallbacks to helm.log only
- Drop the redundant local get_secret import in search_prowlarr
- Test the date parsing, both JSON paths and the file-only warning
- Match duplicates on info hash from magnets, hash-named .torrent URLs and the Jackett, Prowlarr and Torznab hash fields, then on normalized title and size
- Merge duplicates instead of dropping them, keeping the best-seeded copy, a magnet link, any missing date or size, and every source
- Show merged sources as "+N" in the list and as sources in --json
- Use the shared dedupe in search_indexers
…nd show:all

- Read Torznab categories from Jackett, Prowlarr and feeds, trust a matching category over title keywords, and hide results filed only under other types
- Rank video results with audio codec, ep or single words lower instead of hiding them, and keep strong signals like PC, DODI or soundtrack as hard filters
- Lower the min_seeds default to 1 and skip the old default of 3 when migrating config.json
- Keep hidden results with a reason and list them with show:all in the result filter
- Ask Torznab for books 7000 and console games 1000
…owlarr

- Add EZTV, LimeTorrents, TheRARBG, TorrentDownloads, TorrentDownload, TorrentProject, Knaben, uindex, Kickass and ExtraTorrent, each checked against a live Jackett with FlareSolverr
- Move YTS to its current yts.gg link
- Keep one public indexer list for Jackett seeding and Prowlarr defaults, dropping the torrentgalaxy and nyaapantsu names Prowlarr never had
- Leave existing Jackett indexer files alone when init runs again
…download_torrent

- Give retrieve_url and download_file qBittorrent's arguments, return values, unescaping, charset and gzip handling, and add headers, enable_socks_proxy, anySizeToBytes and SearchResults
- Keep every plugin size form, seeder counts with separators, and pub_date as the result date
- Pass third-party plugins the URL-encoded query, keeping the raw query for bundled ones
- Resolve non-magnet plugin results through the plugin's download_torrent in a child process with a timeout, falling back to the link resolver
…oin rounded sizes

- When a search finds fewer than 30 results, probe each long word split in two and also search the split that release names use, such as spider man for spiderman
- Add search.spelling_variants to turn it off
- Rank REPACK video releases lower instead of hiding them
- Fold hashless results with a rounded size into the hashed copy with the same title
@gitguardian

gitguardian Bot commented Nov 3, 2026

Copy link
Copy Markdown

⚠️ GitGuardian has uncovered 2 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
39460838 Triggered Generic Password 8daf58a tests/test_config_commands.py View secret
39460839 Triggered Generic High Entropy Secret 704917d tests/test_theme_banner.py View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

… every Python version

- Treat TimeoutExpired raised inside a banner module as a timeout, which failed the Python 3.8 run when the command's timeout fired just before the deadline
- Set fail-fast to false so one Python version failing no longer cancels the others
@Piratebird

Copy link
Copy Markdown
Owner Author

goated pr twin great job (ignore the haters (gitguardian) they just dk it's tests credentials)

Uploading dog in a suit.jpg…

@Piratebird
Piratebird merged commit 9cb9f13 into main Nov 3, 2026
7 of 8 checks passed
@Piratebird
Piratebird deleted the fix/spelling-variants branch November 3, 2026 15:58
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