AniFlow

Documentation

Download clients

Connect qBittorrent, Deluge or Transmission and check the paths.

What AniFlow does and does not do

AniFlow does not download anything itself. When a release matches an anime's release profile, AniFlow hands it to one download client that you run, then watches that client, and files the finished episode into your library. The torrent traffic, seeding and your connection to peers all belong to the client.

Supported clients:

You need a client only for downloads. A watchlist and calendar work without one.

Where to set it up

There are two places, and they edit the same settings:

The client panel has these fields:

FieldMeaning
ClientqBittorrent, Deluge or Transmission.
Torrent categoryThe name AniFlow files its torrents under. Default: AniFlow. See below.
URLThe address of the client's web interface (qBittorrent, Deluge) or RPC endpoint (Transmission).
UsernameNot shown for Deluge, which has a password only. For Transmission it is only needed if you set one there.
PasswordFor Deluge this is the Web UI password. A stored password is never shown again; leave the field empty to keep it.

Press Test connection. You get Connection successful or Connection failed followed by the reason. The test uses what is on screen, so you can try values before saving.

Default ports and addresses

ClientDefault portAddress looks like
qBittorrent8080 (Web UI)http://qbittorrent:8080
Deluge8112 (Web UI, not the daemon port)http://deluge:8112
Transmission9091 (RPC)http://transmission:9091

When you change the Client drop-down, AniFlow swaps the old client's default port in the address for the new client's default. An address with a port you chose yourself, or no port, is left alone. If you run the client in another container, use its container name or the host's address, not localhost: inside the AniFlow container, localhost is AniFlow itself.

Client-specific notes

The category (or label)

Every torrent AniFlow adds goes under the category in Torrent category (a label in Deluge and Transmission). That is how AniFlow tells its own torrents from yours: it only looks at, and acts on, torrents in that category. Change it only if the default clashes with something you already use; torrents already added keep their old category.

Folders: the part that goes wrong most

AniFlow and the client must see the same download folder at the same path. In the standard setup that is /downloads in both containers:

# AniFlow
volumes:
  - /media/downloads:/downloads

# your download client: the same host folder, the same path inside
volumes:
  - /media/downloads:/downloads

The left side is the folder on your host and is just an example. The right side is the path inside each container, and that has to match. Hardlinking (see below) additionally needs the download folder and the library to be one filesystem, and to be mounted once inside each container.

Checking the folders

On Settings -> Downloads, the Download folder check panel has a Check paths button. It asks the client where it saves, shows that path as AniFlow sees it, and reports whether the download folder can be read and the library folder written. It uses the address and login currently on screen, saved or not. The wizard has a Test the download folder button on the client step, with one of three answers: AniFlow can read and write the folder, can see it but not write to it, or cannot see it.

The Checks page also compares the client's save path with AniFlow's download folder and warns when they differ ("Mount the same folder at the same path in both containers, or AniFlow cannot find the files"). It is fine if the client saves into a folder inside AniFlow's download folder.

After a download is imported

Under What happens after a download finishes two settings decide what happens to the file and to the torrent.

SettingOptions
Getting the file into the library (or to Shoko Server)Copy (default): the download stays and can keep seeding, at the cost of two copies on disk. Hardlink: one copy on disk, the download keeps seeding, but both folders must be on one filesystem and one mount in both containers. If a link cannot be made, the import stops with the reason; it never quietly copies instead. Move: the file leaves the download folder, so seeding cannot continue.
Then, with the torrentPause the torrent (recommended), the default: stops seeding but keeps it listed so you can see AniFlow noticed it finished. Remove the torrent entry. Leave it seeding: not available with Move; choosing Move switches the setting to Remove.

Removing a torrent removes the entry only. AniFlow never asks the client to delete the files. If pausing or removing the torrent fails, that is logged and the import stands.

If a download is a batch covering several episodes, the torrent is left running until the last wanted episode from it has been placed, then paused or removed once.

How often AniFlow checks the client

The Schedule page has the task Downloads: Syncing download status. It asks the client how each download is progressing, imports what has finished and settles the torrent. The interval you set there is how often it checks while idle (default 30 seconds, minimum 5); while something is actually downloading it checks every 5 seconds. A second task, Downloads: Housekeeping, adopts finished torrents in AniFlow's category that AniFlow does not know about and reconciles unsettled downloads with the client, disk and library.

Proxy

The proxy in Settings -> Integrations covers AniFlow's own internet requests: metadata, your indexers and your feeds. It does not cover torrent traffic. That traffic belongs to the client and never passes through AniFlow. If you want it routed through a proxy or VPN, set that up in the client itself. The client is on your own network and AniFlow always connects to it directly.

Common errors

Message or symptomCause and fix
Could not connect ... host unreachable, port closed, or wrong protocolNothing is listening at that address. Check the host name (not localhost from inside a container), the port against the table above, http versus https, and that AniFlow and the client share a Docker network.
Connection timed outWrong host or port, or a firewall is silently dropping the traffic.
qBittorrent rejected the login with HTTP 403Wrong username or password, or your address was temporarily banned after failed attempts. Fix the login and wait a little before retrying.
qBittorrent: the login endpoint answered with an empty body, or the version endpoint returned 404Something other than the qBittorrent Web UI is on that address. Check that the Web UI is enabled and the URL points at its root.
Deluge rejected the Web UI passwordThe Web UI password is its own (the stock default is deluge), not your daemon login. Deluge has no username.
Deluge: the Web UI is not connected to a daemonOpen the Web UI's Connection Manager and add the daemon.
Deluge: the Label plugin is not enabledTurn on Label under Preferences, Plugins and test again.
Transmission rejected the login (HTTP 401)Wrong username or password. Leave both empty if you did not set any.
Nothing answers at the address (HTTP 404)It is probably not the client's address. This often happens after switching the Client drop-down: the address still points at the previous client. Transmission is usually on port 9091.
Transmission is too old for labelsUpgrade to Transmission 3.00 or newer.
Connection works but downloads cannot be found or importedA folder problem; see Folders above. Run Check paths and the Checks page.
The import stops with a message about the library or a linkThe library folder is not writable by AniFlow's user, or (with Hardlink) the two folders are on different mounts. The Checks page tries a real link and says what to change.

Troubleshooting covers further cases.