docs(torrent_api): readme

This commit is contained in:
Lucas Vivo committed 2026-11-23 13:18:05 +01:00
1 parent 2c51aa79b5
commit 5f60b7a44e
1 file changed
+7
+7
View File
@@ -26,6 +26,9 @@ returns the matching torrent records after a successful deletion.
(default: 1.0). Pass `copy_to` with a destination directory to also copy files
that are 100% complete there, preserving their torrent-relative paths. Names
must match exactly; use the hash if multiple torrents have the same name.
For container paths, pass `path_mappings={"/downloads": "/host/downloads"}`
to `Qbittorrent` to translate save paths when copying. Unmapped paths are used
as-is. Copies require the qBittorrent host to be local to the process.
## CLI and debugging
@@ -48,6 +51,10 @@ for completed files). Add `--dry-run` to log planned copies without writing
files. The VS Code launch configuration
uses the workspace `main.py` and loads `.env` automatically. Keep this file
private; it is ignored by Git.
The CLI uses the qBittorrent host mount paths from the repository's Docker
Compose configuration; update those mappings if the mounts change.
At INFO level, startup logs include the working directory and the directory
containing the entry point.
## Tests