1.4 KiB
1.4 KiB
TorrentOps Setup Guide
Enable qBittorrent Web UI
In qBittorrent:
Tools → Options → Web UI → Enable Web User Interface
Set your username/password, then place them in .env.
Setup
python -m venv venv
.\venv\Scripts\activate
pip install -r requirements.txt
copy .env.example .env
python main.py
Add a rule
/add "Frieren" "Sousou no Frieren" 2 anime 5
/confirm
Add a rule with extra must-not-contain terms. These are appended after the hard-coded batch exclusion:
/add "Ghost in the Shell" "Koukaku 265" "Dual Audio HEVC" 1 anime 7
/confirm
Smart quotes from iOS/macOS are normalized automatically.
Feed file behavior
You do not need to maintain a second feeds.json inside the TorrentOps folder.
If FEEDS_PATH is omitted, TorrentOps automatically uses feeds.json from the same qBittorrent RSS folder as download_rules.json.
Example:
DOWNLOAD_RULES_PATH=C:\Users\Brian\AppData\Roaming\qBittorrent\rss\download_rules.json
# FEEDS_PATH can be omitted
Prune old rules
Set the default threshold:
PRUNE_DAYS_AFTER=30
Preview rules older than the threshold:
/prune
Preview a custom threshold:
/prune 45
Apply the removal:
/prune_confirm
Cancel:
/prune_cancel
TorrentOps backs up download_rules.json before removal if BACKUP_RULES_JSON=true.