Initial commit: TorrentOps Telegram-controlled qBittorrent RSS rule manager
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,84 @@
|
||||
# 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
|
||||
|
||||
```powershell
|
||||
python -m venv venv
|
||||
.\venv\Scripts\activate
|
||||
pip install -r requirements.txt
|
||||
copy .env.example .env
|
||||
python main.py
|
||||
```
|
||||
|
||||
## Add a rule
|
||||
|
||||
```text
|
||||
/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:
|
||||
|
||||
```text
|
||||
/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:
|
||||
|
||||
```env
|
||||
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:
|
||||
|
||||
```env
|
||||
PRUNE_DAYS_AFTER=30
|
||||
```
|
||||
|
||||
Preview rules older than the threshold:
|
||||
|
||||
```text
|
||||
/prune
|
||||
```
|
||||
|
||||
Preview a custom threshold:
|
||||
|
||||
```text
|
||||
/prune 45
|
||||
```
|
||||
|
||||
Apply the removal:
|
||||
|
||||
```text
|
||||
/prune_confirm
|
||||
```
|
||||
|
||||
Cancel:
|
||||
|
||||
```text
|
||||
/prune_cancel
|
||||
```
|
||||
|
||||
TorrentOps backs up `download_rules.json` before removal if `BACKUP_RULES_JSON=true`.
|
||||
Reference in New Issue
Block a user