Torrents through qBittorrent instead of librqbit (#494)
ipx ran a BitTorrent session of its own: it bound 6881, joined the DHT and seeded, and librqbit brought over a thousand lines of Cargo.lock with it, ringbuf's advisory (#281) and a second path to chrono (#493) among them. Tower already runs qBittorrent, so torrents go there through its Web API. ipx still fetches the .torrent itself, through the guarded client and under the 10 MB cap (#320, #330), and adds it with the enclosure's own folder as the save path (#318, #331), the files straight into it (NoSubfolder), the seed limits, and a tag ipx-<enclosure> to find it by, since a magnet has no hash until its metadata comes. A torrent already tagged when ipx starts again is taken up where qBittorrent has it (#410). It is polled to the end under the stall limit; a qBittorrent not answering counts as no progress rather than a failure. qBittorrent seeds to the limits; with none, ipx removes the torrent from it at the end, files kept. The session cookie is whatever qBittorrent sets with SID in its name: 5.x calls it QBT_SID_<port>. torrents/info by POST with a tag was checked against Tower's 5.2.3. The ringbuf ignore leaves deny.toml; chrono's stays, for rss and atom_syndication alone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RqkrVBuJRne2JAhFpaDV2U
This commit is contained in:
@@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
### Changed
|
||||
|
||||
- Torrents go to qBittorrent through its Web API, set in `[torrent]` (`qbittorrent_url`, `username`, `password`, `save_path`), which downloads and seeds them; ipx no longer runs a BitTorrent client of its own or listens on 6881, and `port_range` is gone. Without a qBittorrent set, torrents are held back as when they are turned off (#494).
|
||||
- The server's command is `ipxd`, not `ipx`: `ipxd daemon`, `ipxd status`, `ipxd user add` and the rest, in the container as `docker exec iPX ipxd ...`. `ipx` is now the reader in a terminal (#437).
|
||||
|
||||
- The log no longer has a line for every request that went well, over half its size: `/metrics` counts each request and its time by route and status as `ipx_http_request_duration_seconds`, a request that failed keeps its warning, and the admin page's log view still shows them all (#364).
|
||||
|
||||
Reference in New Issue
Block a user