qBittorrent
Play torrents through your own qBittorrent, where they download and seed.
The qBittorrent service plays a torrent through the qBittorrent you already run. Pressing play adds it there, qBittorrent downloads it, and AIOStreams streams the file as it arrives. The torrent stays in qBittorrent afterwards and seeds under its rules, which suits private trackers that only allow certain clients, and anyone who keeps their library in their client.
What It Needs
- qBittorrent with its WebUI on, reachable from AIOStreams.
- qBittorrent's download folder readable by AIOStreams: the same machine, or the folder mounted into the AIOStreams container. Read-only is enough.
- The engine program, which serves the files. The Docker image includes it; see Torrents when running from source. The torrent engine itself can stay off.
Until the folders qBittorrent downloads to are listed, the configure page shows the service as unavailable. List them under Settings → Torrents → qBittorrent service in the dashboard, or as QBITTORRENT_ALLOWED_ROOTS, comma-separated. AIOStreams only reads files inside them, wherever a link points.
services:
aiostreams:
volumes:
- /srv/torrents:/downloads:ro
environment:
QBITTORRENT_ALLOWED_ROOTS: /downloadsAdding It to a Configuration
Under Services, add qBittorrent with:
- WebUI URL: as AIOStreams reaches it, such as
http://qbittorrent:8080. - Username and Password: the WebUI's. qBittorrent bans an address after a few wrong passwords, so use Test connection before saving.
- Path Mappings: when qBittorrent sees the download folder at another path than AIOStreams does, as
qBittorrent's path=AIOStreams' path, such as/data/torrents=/downloads. Separate more than one with;. - Category: a category for the torrents AIOStreams adds, for tools or rules that work by category. With automatic torrent management, qBittorrent moves them to the category's save path, which then has to be in a folder AIOStreams may read.
- Download Only the Played File: in a torrent AIOStreams adds with several files, such as a season pack, the files not played are skipped. Such a torrent never completes, which private trackers count as a hit and run.
Built-in torrent addons such as Torznab, Jackett, Prowlarr and Knaben then offer it among their services.
What Results Show
- A torrent already in qBittorrent shows as cached when the file you would play is complete there. Its seeder count is what qBittorrent last heard from its trackers.
- A torrent in qBittorrent with an error or missing files is left out.
- Any other result shows as not cached, and playing it adds it.
Playing
AIOStreams adds a torrent with the tag aiostreams, to download in order with its first and last pieces first, and starts it if qBittorrent queued it. Then:
- A complete file is read from disk.
- A file still downloading is read as qBittorrent writes it. Each piece goes to the player once it matches the torrent's hash, so seeking ahead waits for qBittorrent to get there.
- A public torrent still downloading, where the torrent engine is on, streams from its swarm through the engine, with qBittorrent among its peers, so the two pass each other what they have.
A private torrent is only ever read from qBittorrent's files, so nothing else announces it to the tracker.
Torrents that were in qBittorrent before are left as they are: AIOStreams never tags, stops or starts them, and only un-skips a file you play. It removes no torrent, its own included, so seeding follows the ratio and time limits set in qBittorrent.
Failover never moves on to qBittorrent, and preloading and next-episode precaching pass it by, so nothing lands in your client unless you play it.

