"A simple Python script to talk to qBittorrent and Arr's"
Project description
qBitrr
A simple script to monitor qBit and communicate with Radarr and Sonarr
Notice
I am starting development on qBitrr+ which will be C# based for better overall performance and will also include a WebUI for better refined control on setting and what to search/upgrade etc. Hoping this will be the be all and end all application to manage your Radarr/Sonarr, Overseerr/Ombi and qBittorrent instances in one UI. This is still in it's very early stages and will likely be a couple months before a concrete alpha is rolled out (from start of February 2024). Once I have something solid I will remove this notice and add a link to the new qBitrr+, in the meantime I will be sharing periodic updates on my Patreon
Features
- Monitor qBit for Stalled/bad entries and delete them then blacklist them on Arrs (Option to also trigger a re-search action).
- Monitor qBit for completed entries and tell the appropriate Arr instance to import it:
qbitrr DownloadedMoviesScan
for Radarrqbitrr DownloadedEpisodesScan
for Sonarr
- Skip files in qBit entries by extension, folder or regex.
- Monitor completed folder and clean it up.
- Usage of ffprobe to ensure downloaded entries are valid media.
- Trigger periodic Rss Syncs on the appropriate Arr instances.
- Trigger Queue update on appropriate Arr instances.
- Search requests from Overseerr or Ombi.
- Auto add/remove trackers
- Set per tracker values
- Sonarr v4 support
- Radarr v4 and v5 support
- Monitor Arr's to trigger missing episode searches.
- Searches Radarr missing movies based on Minimum Availability
- Customizable searching by series or singular episodes
- Optionally searches year by year is ascending or descending order (config option available)
- Search for CF Score unmet and cancel torrents base on CF Score or Quality unmet search
- Set minimum free space in download directory and pause torrent downloads accordingly
- Change quality profile temporarily for missing items until found
Tested with
Some things to know before using it.
- qBittorrent >= 4.5.x
- Sonarr and Radarr both setup to add tags to all downloads.
- qBit set to create sub-folders for tag.
Usage
Native
python -m pip install qBitrr2
(I would recommend in a dedicated venv but that's out of scope.
Alternatively:
- Download the latest release
Run the script
- Activate your venv
- Run
qBitrr2
to generate a config file - Edit the config file (located at
~/config/config.toml
(~ is your current directory) - Run
qBitrr2
if installed through pip again to start the script
Alternatively:
- Unzip the downloaded release and run it
- Run
qBitrr
to generate a config file - Edit the config file (located at
~/config/config.toml
(~ is your current directory) - Run
qBitrr
if installed through pip again to start the script
How to update the script
- Activate your venv
- Run
python -m pip install -U qBitrr2
Alternatively:
- Download on the latest release
- Unzip the downloaded release and run it
- Run
qBitrr
to generate a config file - Edit the config file (located at
~/config/config.toml
(~ is your current directory) - Run
qBitrr
if installed through pip again to start the script
There is no auto-update feature, you will need to manually download the latest release and replace the old one.
Docker
Docker Image
Docker Run
docker run -d \
--name=qbitrr \
-e TZ=Europe/London \
-v /etc/localtime:/etc/localtime:ro \
-v /path/to/appdata/qbitrr:/config \
-v /path/to/completed/downloads/folder:/completed_downloads:rw \
--restart unless-stopped \
feramance/qbitrr:latest
Docker Compose
version: "3"
services:
qbitrr:
image: feramance/qbitrr:latest
user: 1000:1000 # Required to ensure the container is run as the user who has perms to see the 2 mount points and the ability to write to the CompletedDownloadFolder mount
tty: true # Ensure the output of docker-compose logs qBitrr are properly colored.
restart: unless-stopped
# networks: This container MUST share a network with your Sonarr/Radarr instances
environment:
- TZ=Europe/London
volumes:
- /etc/localtime:/etc/localtime:ro
- /path/to/appdata/qbitrr:/config # Config folder for qBitrr
- /path/to/completed/downloads/folder:/completed_downloads:rw # The script will ALWAYS require write permission in this folder if mounted, this folder is used to monitor completed downloads and if not present will cause the script to ignore downloaded file monitoring.
# Now just to make sure it is clean, when using this script in a docker you will need to ensure you config.toml values reflect the mounted folders.
# The same would apply to Settings.CompletedDownloadFolder
# e.g CompletedDownloadFolder = /completed_downloads/folder/in/container
logging: # this script will generate a LOT of logs - so it is up to you to decide how much of it you want to store
driver: "json-file"
options:
max-size: "50m"
max-file: 3
depends_on: # Not needed but this ensures qBitrr only starts if the dependencies are up and running
- qbittorrent
- radarr-1080p
- radarr-4k
- sonarr-1080p
- sonarr-anime
- overseerr
- ombi
Important mentions for docker
- The script will always expect a completed config.toml file
- When you first start the container a "config.rename_me.toml" will be added to
/path/to/appdata/qbitrr
- Make sure to rename it to 'config.toml' then edit it to your desired values
Feature Suggestions
Please do not hesitate to open an issue for feature requests or any suggestions you may have. I plan on periodically adding any features I might feel I want to add but welcome to other suggestions I might not have thought of yet.
Reporting an Issue
When reporting an issue, please ensure that log files are enabled while running qBitrr and attach them to the issue. Thank you.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file qbitrr2-4.9.18.tar.gz
.
File metadata
- Download URL: qbitrr2-4.9.18.tar.gz
- Upload date:
- Size: 58.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53ad5a5709006ccba932f9ff0ba55b224833065854efcd80ba06d491d4afa12d |
|
MD5 | 4f23c899b4d7a356739d33079ca6739a |
|
BLAKE2b-256 | 51cd2bf0e5b3740fb5a93d7cc4255015ea0e292786a878c4d53fb4cacf2b262f |
File details
Details for the file qBitrr2-4.9.18-py3-none-any.whl
.
File metadata
- Download URL: qBitrr2-4.9.18-py3-none-any.whl
- Upload date:
- Size: 58.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2174642decc532a09ed1fdfadc18e0c398968fcb64aad319575097d906f97ef3 |
|
MD5 | a5affedc625fc1ec1dd4da12ec961c49 |
|
BLAKE2b-256 | fdce6fdeb9b8233f3a2fb61bb6c9536f51734c8a1a8bd431f6e834950c69990b |