Table of Contents
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This script add Categories to Automatically add torrents from per Monitored Folder
👉 This script is in flux, as it may be implemented into qBittorrent in the future.
savecategory
expects the user's watch directories to look similar to something like this:
It's based off the popular wiki for setting up hard linking Docker and other torrent grabbers.
Installation
Save the script below as savecategory
and make it executable via chmod 755 /path/to/savecategory
.
#!/bin/sh
category="$(basename $1)"
torrent_hash="$2"
torrent_name="$3"
host="http://localhost:8112"
username="admin"
password="adminadmin"
echo "running savecategory script"
echo "\tgetting cookie"
cookie=$(curl --silent --fail --show-error \
--header "Referer: $host" \
--cookie-jar - \
--request GET "$host/api/v2/auth/login?username=$username&password=$password")
echo "\tsetting $torrent_name to category $category"
echo "$cookie" | curl --silent --fail --show-error \
--cookie - \
--request GET "$host/api/v2/torrents/setCategory?hashes=$torrent_hash&category=$category"
echo "completed savecategory script"
exit 0
ℹ️ Make sure to replace the
username
andpassword
with your credentials before using or else this will not work. Another caveat is that if your password contains#
or&
, you'll need to replace with ASCII encoded characters.🔗 gist for potential script changes or comments.
And set Run external program on torrent completion to:
/path/to/savecategory "%D" "%I" "%N"
On completion, the category will change based on the directory name the .torrent
file was placed in the watch directory.
General
- Installing qBittorrent
- Frequently Asked Questions (FAQ)
- qBittorrent options (current and deprecated)
- How to use qBittorrent as a tracker
- How to use portable mode
- Anonymous mode
- How to bind your vpn to prevent ip leaks
Troubleshooting
External programs
Search plugins
Themes
Translation
WebUI
WebUI API
State | Version |
---|---|
Current | qBittorrent ≥ v4.1 |
Previous | qBittorrent v3.2.0 - v4.0.x |
Obsolete | qBittorrent < v3.2.0 |
WebAPI clients
Alternate WebUI
Reverse proxy setup for WebUI access
WebUI HTTPS configuration
- Let's Encrypt Certificates + Caddy2 Reverse Proxy
- Let's Encrypt certificates + NGINX reverse proxy - Linux
- Let's Encrypt certificates - Linux
- Self-signed SSL certificates - Linux
Linux
- Running qBittorrent without X server (WebUI only)
- Running qBittorrent without X server (WebUI only, systemd service set up, Ubuntu 15.04 or newer)
- OpenVPN and qBittorrent without X server
Development
- Coding style
- Contributing
- How to write a search plugin
- Using VSCode for qBittorrent development
- Setup GDB with Qt pretty printers
- How to debug WebUI code
Compilation
*BSD, Linux
- Alpine Linux
- CentOS 8.x
- Debian / Ubuntu and derivatives (CMake)
- Debian / Ubuntu and derivatives (autotools/qmake)
- Docker
- FreeBSD (no GUI)
- Fully static binaries on Linux (glibc or musl)
- Raspberry Pi OS / DietPi
- Raspbian for LeMaker Banana Pro