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:
2026-11-22 14:29:20 -05:00
parent 2c8b4d925e
commit c4d7b497fa
13 changed files with 364 additions and 1369 deletions

View File

@@ -7,12 +7,9 @@ targets = ["x86_64-unknown-linux-gnu"]
[advisories]
ignore = [
# ringbuf 0.4's double free needs an element whose Drop panics; librqbit-utp's buffer holds
# only u8, which has no Drop. Its fix is ringbuf 0.5, which librqbit 9.0.1 cannot take (#281).
{ id = "RUSTSEC-2026-0293", reason = "librqbit-utp's ring buffer holds u8: no Drop to panic" },
# chrono is unmaintained, every version, and no vulnerability is known. rss, atom_syndication and
# librqbit-dht depend on it, so ipx's own code moving off it would not take it out (#493).
{ id = "RUSTSEC-2026-0543", reason = "unmaintained, not vulnerable; the feed parsers and librqbit depend on it (#493)" },
# chrono is unmaintained, every version, and no vulnerability is known. rss and atom_syndication
# depend on it, so ipx's own code moving off it would not take it out (#493).
{ id = "RUSTSEC-2026-0543", reason = "unmaintained, not vulnerable; the feed parsers depend on it (#493)" },
]
[licenses]